• 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: 'selector not recognized' ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >'selector not recognized' ? (From: Lance Drake <email@hidden>)

  • Prev by Date: Re: 'selector not recognized' ?
  • Next by Date: Re: 'selector not recognized' ?
  • Previous by thread: Re: 'selector not recognized' ?
  • Next by thread: Linking Troubles
  • Index(es):
    • Date
    • Thread