Re: NSData testing for NULL [SOLVED]
Re: NSData testing for NULL [SOLVED]
- Subject: Re: NSData testing for NULL [SOLVED]
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 17 Jan 2005 05:50:00 +0100
At 21:23 Uhr -0500 16.01.2005, Mark Ritchie wrote:
NSData *note = [record objectForKey:@"notes"];
if ((note != null) && [note isKindOfClass:[NSData class]){
...
}
Note that in the past I would have used the following:
if ((note != null) && ( note != [NSNull null])){
...
}
Just note that this is pseudo-code, not Objective C. "null" is a Java
constant. C has NULL, and ObjC additionally offers nil and Nil (the
former for instances, the latter typically used for classes).
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden