Re: What is going wrong with my image coloring?
Re: What is going wrong with my image coloring?
- Subject: Re: What is going wrong with my image coloring?
- From: "Alan Smith" <email@hidden>
- Date: Sun, 10 Dec 2006 10:07:06 -0500
Ohh! It all makes sense now. Thanks, that was what I was looking for.
So, if the image isn't mutable initially how do I make it mutable? Like so?
// This would be a category on NSImage.
NSImage *mutableImage = [[NSImage alloc] initWithSize: [self size]];
[mutableImage lockFocus];
[self drawInRect:…];
[mutableImage unlockFocus];
[self release];
self = mutableImage;
But then I run into problems with not knowing if I should set self to be
autoreleased, etc.
Or, is there some way to use - (id)mutableCopy (NSObject) for this?
Suggestions are greatly appreciated.
Peace, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that religion really is unnecessary, then it shall
evolve."
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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