• 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: Compiler bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler bug?


  • Subject: Re: Compiler bug?
  • From: Keary Suska <email@hidden>
  • Date: Tue, 13 Jul 2010 15:33:12 -0600

On Jul 13, 2010, at 2:44 PM, Murat Konar wrote:

>    NSLog(@"extAttrs:%@", [attrs objectForKey:@"NSFileExtendedAttributes"]);
>    NSLog(@"attrs:%@", attrs);
>    NSLog(@"extAttrs:%@", [attrs objectForKey:@"NSFileExtendedAttributes"]);

> 2010-07-13 13:14:30.648 FileManagerBug[9323:813] extAttrs:(null)
> 2010-07-13 13:14:30.653 FileManagerBug[9323:813] attrs:{
>    NSFileCreationDate = 2010-07-12 17:37:02 -0700;
>    NSFileExtendedAttributes =     {
>        "com.apple.metadata:kMDItemFinderComment"; = <62706c69...00000e>;
>    };
>    NSFileExtensionHidden = 0;
>    NSFileGroupOwnerAccountID = 219;
>    NSFileGroupOwnerAccountName = gfx;
>    NSFileHFSCreatorCode = 0;
>    NSFileHFSTypeCode = 0;
>    NSFileModificationDate = 2010-07-12 17:37:02 -0700;
>    NSFileOwnerAccountID = 3779;
>    NSFileOwnerAccountName = murat;
>    NSFilePosixPermissions = 436;
>    NSFileReferenceCount = 1;
>    NSFileSize = 0;
>    NSFileSystemFileNumber = 17122047;
>    NSFileSystemNumber = 234881026;
>    NSFileType = NSFileTypeRegular;
> }
> 2010-07-13 13:14:30.654 FileManagerBug[9323:813] extAttrs:{
>    "com.apple.metadata:kMDItemFinderComment"; = <62706c69...00000e>;
> }

First off, NSFileExtendedAttributes is undocumented and likely a private API. Your bug requests might get ignored, not only because they may have nothing to so with the compiler, but also because you are not supposed to be using private APIs anyway.

Additionally, you are assuming that the specific dictionary entry exists before you call NSLog(@"attrs:%@", attrs), when in fact it may not. There may be a private method that creates the dictionary entry, that also happens to be called by -description.

If you really need to know, you should be able to step through the code in the debugger to find out.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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

References: 
 >Compiler bug? (From: Murat Konar <email@hidden>)

  • Prev by Date: Re: Compiler bug?
  • Next by Date: Drag pasteboard owner asked for data upon quitting
  • Previous by thread: Re: Compiler bug?
  • Next by thread: Re: Compiler bug?
  • Index(es):
    • Date
    • Thread