[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStream update

From: Derek Zhou
Subject: Re: NSStream update
Date: 21 Feb 2006 11:18:40 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"Andrew Ruder" <address@hidden> writes:

> > 2. make the ivar/setter generic somehow ... eg by using a void*
> > rather than an int.  Actually a windows handle is an unsigned long
> > thought I'm not sure it's guaranteed to stay that way ... using void*
> > in the generic part should be safe though.
> The worst thing about the void * is that the number of warnings
> generated on a amd64 machine is pretty staggering on NSStream.  I've
> included a sample output below.  Can't this be done with typedef's?
> - Andy
I don't have a 64bit machine so I cannot verify, but In
Foundation/NSRunloop.h there is: 

- (void) addEvent: (void*)data
             type: (RunLoopEventType)type
          watcher: (id<RunLoopEvents>)watcher
          forMode: (NSString*)mode;

Where data is the file descriptor (int) in Unix. So how does that


reply via email to

[Prev in Thread] Current Thread [Next in Thread]