On Sun, Jun 8, 2008 at 1:37 PM, Joan Lluch (casa) <[EMAIL PROTECTED]> wrote: > return ( item && [[item representedObject] isKindOfClass:[GroupNode > class]] ) ;
Style note: you don't need to do this. [[item representedObject] isKindOfClass:[GroupNode class]] will work just fine, because messages to nil return zero or their logical equivalent. So if item == nil, then [item representedObject] == nil, which means that [[item representedObject] isKindOfClass:[GroupNode class]] == NO. Of course, this all works only if the GroupNode class exists. ;-) --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]