Re: How do I get the version of AppKit.framework available in Cocoa Application Framework 10.5? Probably a dumb question I know..
Re: How do I get the version of AppKit.framework available in Cocoa Application Framework 10.5? Probably a dumb question I know..
- Subject: Re: How do I get the version of AppKit.framework available in Cocoa Application Framework 10.5? Probably a dumb question I know..
- From: Dave DeLong <email@hidden>
- Date: Fri, 03 Jul 2009 16:33:50 -0600
Hi Max,
First off, AppKit is distributed with the system. It may or may not
get updated during an OS update (such as the rumored 10.5.8 update),
but that's it. You can't download a different version.
As for the initWithCIImage: method, the page you linked to is
describing the API changes between 10.4 and 10.5. If you're running
10.5, you should have that initializer available to you. If you
don't, what error are you getting when trying to compile?
Finally, if you need to have this work at runtime, and you want to
maintain Tiger (10.4) compatibility, there's been a long discussion
recently on how to determine the OS version at runtime: http://www.cocoabuilder.com/archive/message/cocoa/2009/7/2/240095
HTH,
Dave
On Jul 3, 2009, at 2:41 AM, email@hidden wrote:
Hi Folks,
sorry I know this is probably a dumb question. I'm new to Mac OS X
development being a jaded Java bod coming over to the light. Very nice
it is too.
My problem is I need to call this method that seems to be in a later
version of the AppKit.framework than is on my machine.
The method is "initWithCIImage" as follows:
NSBitmapImageRep *bitmapImage = [NSBitmapImageRep
initWithCIImage:image];
From what I can find, "initWithCIImage" is included in the 10.5
release of Cocoa...
http://developer.apple.com/releasenotes/Cocoa/AppKit.html#//apple_ref/doc/uid/TP30000741
In Xcode, the AppKit headers show the method, but if I examine
/System/Library/Frameworks/AppKit.framework, it looks like an old
version (see below).
I've tried googling all the obvious stuff but I just can't find where
to download an updated AppKit.framework. Is it only available to ADC
paid subscribers?
I'm running Xcode 3.1.3, and OS X 10.5.7
Any advice would be much appreciated.
Thanks,
Max
nm AppKit | more
0019ab9f t +[NSBitmapImageRep TIFFRepresentationOfImageRepsInArray:]
003f2762 t +[NSBitmapImageRep
TIFFRepresentationOfImageRepsInArray:usingCompression:factor:]
0015bfd0 t +[NSBitmapImageRep
_imageRepWithData:hfsFileType:extension:]
0012ba68 t +[NSBitmapImageRep
_imageRepsWithData:hfsFileType:extension:expandImageContentNow:]
003f2905 t +[NSBitmapImageRep _imagesFromIcon:inApp:zone:]
003f29ca t +[NSBitmapImageRep
_imagesFromURL:forImage:fileType:extension:]
003f28ae t +[NSBitmapImageRep
_imagesWithData:hfsFileType:extension:zone:expandImageContentNow:]
0012bafc t +[NSBitmapImageRep
_imagesWithData:hfsFileType:extension:zone:expandImageContentNow:includeAllReps
:]
0012fafa t +[NSBitmapImageRep canInitWithData:]
003f2166 t +[NSBitmapImageRep getTIFFCompressionTypes:count:]
002ed4b6 t +[NSBitmapImageRep imageRepWithData:]
0012fb8c t +[NSBitmapImageRep imageRepsWithData:]
00117837 t +[NSBitmapImageRep imageUnfilteredFileTypes]
0004fb26 t +[NSBitmapImageRep imageUnfilteredPasteboardTypes]
003f51e8 t +[NSBitmapImageRep imageUnfilteredTypes]
00005adc t +[NSBitmapImageRep initialize]
003f2185 t +[NSBitmapImageRep localizedNameForTIFFCompressionType:]
0019abdf t +[NSBitmapImageRep(NSBitmapImageFileTypeExtensions)
representationOfImageRepsInArray:usingType:properties:]
004893e0 t +[NSBitmapImageRep(NSDragManagerFix)
_setEnableFlippedImageFix:]
_______________________________________________
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
_______________________________________________
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