Re: This CFDictionaryRef casting works, but it's ugly (or, please help me clean up my code!)
Re: This CFDictionaryRef casting works, but it's ugly (or, please help me clean up my code!)
- Subject: Re: This CFDictionaryRef casting works, but it's ugly (or, please help me clean up my code!)
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 18 May 2006 20:05:06 -0700
On 5/18/06, Shawn Erickson <email@hidden> wrote:
while(appEntry = [enumerator nextObject]) {
Personally I use the following to make it explicitly I am checking for
a nil object reference (pointer)...
while((appEntry = [enumerator nextObject]) != nil) {
...
}
-Shawn
_______________________________________________
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