• 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: Directory enumeration gives wrong file type for aliases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Directory enumeration gives wrong file type for aliases
      • From: Gabriel Zachmann <email@hidden>
References: 
 >Directory enumeration gives wrong file type for aliases (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: Directory enumeration gives wrong file type for aliases
  • Next by Date: Re: How to count Atoms
  • Previous by thread: Re: Directory enumeration gives wrong file type for aliases
  • Next by thread: Re: Directory enumeration gives wrong file type for aliases
  • Index(es):
    • Date
    • Thread