• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa Headers Inconsistent With Online Docs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Cocoa Headers Inconsistent With Online Docs (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Create array from a string...
  • Next by Date: Re: Simple example of threading
  • Previous by thread: Re: Cocoa Headers Inconsistent With Online Docs
  • Next by thread: Re: Cocoa Headers Inconsistent With Online Docs
  • Index(es):
    • Date
    • Thread