Re: NSData testing for NULL
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