Re: Add metadata to my files for Spotlight
Re: Add metadata to my files for Spotlight
- Subject: Re: Add metadata to my files for Spotlight
- From: Jonathon Mah <email@hidden>
- Date: Wed, 11 May 2005 22:06:50 +0930
On 2005-05-11, at 21:03, Lorenzo wrote:
tempDict = [[NSDictionary alloc]
initWithContentsOfFile:(NSString*)pathToFile];
For a temp dict, you may perhaps prefer
dictionaryWithContentsOfFile :) Or perhaps not, depending on what
exactly you are doing :))
this was done for a reason. trying to avoid using autorelease
pools.
I will use dictionaryWithContentsOfFile and not use the pool.
No, you should use [[alloc] init] and _not_
dictionaryWithContentsOfFile to avoid using the auto-release pool.
This way you can release the dictionary as soon as you're done with
it instead of when the Spotlight server gets around to it.
Jonathon Mah
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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