Re: Cocoa Headers Inconsistent With Online Docs
Re: Cocoa Headers Inconsistent With Online Docs
- Subject: Re: Cocoa Headers Inconsistent With Online Docs
- From: Vince DeMarco <email@hidden>
- Date: Wed, 11 Feb 2004 15:57:47 -0800
On Feb 11, 2004, at 2:40 PM, Daniel Todd Currie wrote:
The online cocoa documentation lists this method in NSObject:
- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg
waitUntilDone:(BOOL)wait
However, the NSObject.h file in /System/Library/Frameworks does not
list this method. I assume this is why I'm getting a compiler warning
on my app regarding my usage of -performSelectorOnMainThread:. The
app works just fine though...
So where is this method actually declared? Why is there this
inconsistency? What can I do about this compiler warning? (I really
hate having compiler warnings.)
its in NSThread.h
grep performSelectorOnMainThread *.h
NSThread.h:- (void)performSelectorOnMainThread:(SEL)aSelector
withObject:(id)arg waitUntilDone:(BOOL)wait modes:(NSArray *)array;
NSThread.h:- (void)performSelectorOnMainThread:(SEL)aSelector
withObject:(id)arg waitUntilDone:(BOOL)wait;
But declared as a category in NSObject
To Fix the warning
change the
#import <Foundation/NSObject.h>
to
#import <Foundation/Foundation.h>
vince
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.