• 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: getting info of an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: getting info of an image
      • From: Hayden Stainsby <email@hidden>
References: 
 >getting info of an image (From: Francesca <email@hidden>)

  • Prev by Date: getting info of an image
  • Next by Date: Re: Document-based app
  • Previous by thread: getting info of an image
  • Next by thread: Re: getting info of an image
  • Index(es):
    • Date
    • Thread