• 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: Read jpeg comments from file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read jpeg comments from file?


  • Subject: Re: Read jpeg comments from file?
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 03 Apr 2008 17:52:11 +0000
  • Thread-topic: Read jpeg comments from file?

> On Apr 3, 2008, at 2:13 AM, Trygve Inda wrote:
>>> If you just need to display the image, use an NSImage
>>> (initWithContentsOfFile).
>>> If you need a greater control over metadata, use the ImageIO API
>>> (search CGImageSource in doc and sample codes).
>>
>> This works and retrieves the user text that was embedded in the
>> image). Is
>> there a more Cocoa-way to do this ather than having to use
>> QuickTime and
>> FSSpecs?
>
> I don't know about detaching from QuickTime, but you can at least get
> rid of the FSSpec parts:
>
> And a couple of other things I noticed:
>
> - You could just use ComponentResult as your error/result variable
> type since it handles a superset of OSErr values.
> - You're not calling DisposeHandle(dataHandle).

This helps a bit - the DisposeHandle was being called but got deleted in my
mail reformatting zealousness.  :-)

T.


_______________________________________________

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: 
 >Re: Read jpeg comments from file? (From: Steve Christensen <email@hidden>)

  • Prev by Date: Why is actually kAuthorizationEnvironmentIcon often not working for 10.4?
  • Next by Date: Re: Objective-C Instance Variable Names
  • Previous by thread: Re: Read jpeg comments from file?
  • Next by thread: Name of NSTableView
  • Index(es):
    • Date
    • Thread