Re: NSData category

2010-02-17 Thread Mike Abdullah
On 16 Feb 2010, at 13:21, Torsten Curdt wrote: I am really really irritated. Got an iPhone project. Got quite some categories with additions to the standard APIs. All good. Just the darn NSData refuses to accept the category ... and I have no clue why. It's as simple as @interface NSData

NSData category

2010-02-16 Thread Torsten Curdt
I am really really irritated. Got an iPhone project. Got quite some categories with additions to the standard APIs. All good. Just the darn NSData refuses to accept the category ... and I have no clue why. It's as simple as @interface NSData (NSDataAdditions) + (id)

Re: NSData category

2010-02-16 Thread Paul Sanders
Why NSConcreteData? Does it create a different object under the hood Yes, NSData is a class cluster (see Google). NSString, NSArray and NSDictionary are too, and no doubt others. But I don't see why you shouldn't put a category on NSConcreteData, other than the fact that the sand might

Re: NSData category

2010-02-16 Thread jonat...@mugginsoft.com
I am really really irritated. Got an iPhone project. Got quite some categories with additions to the standard APIs. All good. Just the darn NSData refuses to accept the category ... and I have no clue why. It's as simple as @interface NSData (NSDataAdditions) + (id)

Re: NSData category

2010-02-16 Thread Torsten Curdt
Bah ... one really just has to write the email to the list to find the fix himself. So here is what happened: I had added a new file to the Xcode project and renamed it. When checking with nm I found that the symbol for the category was actually missing ...and fair enough - it was just missing