Re: 'selector not recognized' ?
Re: 'selector not recognized' ?
- Subject: Re: 'selector not recognized' ?
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 22 Jul 2004 17:33:18 +0100
On 22 Jul 2004, at 16:21, Lance Drake wrote:
if((NULL != (void*)myDictionary) && (NULL != (void*)myString)) //
don't access garbage
{
...
}
As joar said, your memory management is borken so your pointers are
non-NULL but the objects have been freed and so you're just looking at
random gook.
You might also find that using "nil" is less verbose (nil is defined as
(id)0):
if (nil != myDictionary)
rather than
if (NULL != (void*)myDictionary)
-- Finlay
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.