• 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: NSData testing for NULL [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSData testing for NULL [SOLVED]
      • From: Mark Ritchie <email@hidden>
    • Re: NSData testing for NULL [SOLVED]
      • From: Robin Hermann <email@hidden>
References: 
 >NSData testing for NULL (From: Robin Hermann <email@hidden>)
 >Re: NSData testing for NULL [SOLVED] (From: Robin Hermann <email@hidden>)
 >Re: NSData testing for NULL [SOLVED] (From: Mark Ritchie <email@hidden>)

  • Prev by Date: Re: how to create webloc file in programming?
  • Next by Date: Re: how to create webloc file in programming?
  • Previous by thread: Re: NSData testing for NULL [SOLVED]
  • Next by thread: Re: NSData testing for NULL [SOLVED]
  • Index(es):
    • Date
    • Thread