Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2004



Tip: Looking for answers? Try searching our database.

Converting Carbon app to Cocoa

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pf - 27 Oct 2004 06:54 GMT
Hi,

I'm wondering about converting my Carbon app to Cocoa but there's two big
problems (for me). My app reads several data files created by another
application and within a data file lurks image and AIFF files. That is a
data file can be comprised of several PCX and AIFF files concatenated
together. In Carbon I can seek to the correct spot in the data file and read
the image data or AIFF data into memory and then convert and use DrawPicture
or PlaySound. But what do I use in Cocoa? Every function that could be ok
seems to want to read a disk file rather than a file already loaded into
RAM.

Any help appreciated, thanks.

Paul
Doc O'Leary - 27 Oct 2004 13:26 GMT
In article
<417f374e$0$687$61c65585@uq-127creek-reader-02.brisbane.pipenetworks.com
.au>,

> In Carbon I can seek to the correct spot in the data file and read
> the image data or AIFF data into memory and then convert and use DrawPicture
> or PlaySound. But what do I use in Cocoa? Every function that could be ok
> seems to want to read a disk file rather than a file already loaded into
> RAM.

I highly suggest actually reading the Cocoa documentation.  Both NSImage
(and various representations) and NSSound support the -initWithData:
method.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.