• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData testing for NULL


  • Subject: Re: NSData testing for NULL
  • From: daniel <email@hidden>
  • Date: Sun, 16 Jan 2005 14:21:27 -0800

On Jan 16, 2005, at 2:05 PM, Robin Hermann wrote:
But when there is no text I get the following message in the log:
-[NSNull length]: selector not recognized


How can I avoid this?

How about

if ([note isKindOfClass:[NSData class]] == YES)
{
len = [note length];
...
}

Daniel
 _______________________________________________
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

References: 
 >NSData testing for NULL (From: Robin Hermann <email@hidden>)

  • Prev by Date: Re: NSData testing for NULL [SOLVED]
  • Next by Date: Re: Retaining state of windows and panels
  • Previous by thread: Re: NSData testing for NULL [SOLVED]
  • Next by thread: Inserting text
  • Index(es):
    • Date
    • Thread