Re: getting info of an image
Re: getting info of an image
- Subject: Re: getting info of an image
- From: Camillo Lugaresi <email@hidden>
- Date: Thu, 29 Dec 2005 13:18:59 +0100
On 29/dic/05, at 13:04, Francesca wrote:
Hallo,
in my apps I load various images.
Now, I would get the info of my image, as resolution, height, with,
creator... etc etc.
Now i done this with applescript.
I tell ImageEvent to get the MetaData.
But,
I would know if there is a way by cocoa....
I'm searching in FileManager,
I've found various constant, such as NSFileSize and others.
But not all what I need.
Someone can help me???
Can I use NSImage or what to get all the metaData of my file???
If you want to get all the metadata that Spotlight supports, use
MDItem in Carbon. Cocoa has NSMetadataItem, but the only way to
obtain one seems to be through a query, so if you want information
about a specific file MDItem is the way to go. You don't have to link
with the entire Carbon framework to use MDItem, just link with
CoreServices.
Camillo
_______________________________________________
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