Re: Directory enumeration gives wrong file type for aliases
Re: Directory enumeration gives wrong file type for aliases
- Subject: Re: Directory enumeration gives wrong file type for aliases
- From: Quincey Morris <email@hidden>
- Date: Fri, 07 Oct 2016 15:18:52 -0700
- Feedback-id: 167118m:167118agrif8a:167118sB_IqVB1yv:SMTPCORP
On Oct 7, 2016, at 08:21 , Gabriel Zachmann <email@hidden> wrote:
>
> [NSNumber numberWithBool: YES] == [fattrs objectForKey: NSFileExtensionHidden]
Also, this is really bad. These are objects, and there’s no guarantee that the object pointers are identical, which is what you’re testing for. Either compare them with ‘isEqual:’. or cast the fattrs object to NSNumber and get its boolValue.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden