Re: Reading Adobe Photoshop header, Obj-C
Re: Reading Adobe Photoshop header, Obj-C
- Subject: Re: Reading Adobe Photoshop header, Obj-C
- From: Jens Alfke <email@hidden>
- Date: Tue, 28 Jun 2011 10:17:43 -0700
On Jun 28, 2011, at 10:11 AM, Kevin Muldoon wrote:
> I suppose the trouble here is that I'm familiar with Objective-C code and not so familiar with its parent, C.
Yeah, unfortunately Objective-C does not absolve you of having to know C. With where you’re going, I’d suggest cracking open Kernighan & Ritchie or some other good C book.
(It’s a shame Cocoa doesn’t have more powerful stream APIs, or some equivalent of Perl/PHP/Ruby’s ‘unpack’ function, that would let you do this kind of stuff without needing to do pointer grunge. For some reason streams have always been a primary Achilles’ heel of Cocoa. I’ve been coding in it for ten years and I still never use NSFileHandle — if I have to stream data to/from files I just drop down to ANSI C or POSIX I/O calls.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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