Re: exporting image files to disk using CGImageDestination

2014-02-25 Thread Kevin Meaney
On 24 Feb 2014, at 18:59, Kevin Meaney wrote: > On 24 Feb 2014, at 18:40, David Duncan wrote: >> >> How are you generating these images? Specifically, the CGImageRef you pass >> to CGImageDestination and the pixels backing it. >> >> PNG does not store premultiplied image data, so the pixels wi

Protocols and forwardingTargetForSelector:

2014-02-25 Thread jonat...@mugginsoft.com
I have an NSString subclass as below. If the subclass doesn’t respond to a given selector I want to forward the selector to another object. What is the best way to declare the interfaces for DBManagedString and DBManagedObject? Should I declare a DBManagedObject protocol in which all the method

tableView - message sent to deallocated instance

2014-02-25 Thread Pax
This is a really weird problem (in my view, anyway), because it only occurs in a very particular set of circumstances. My application is NSDocument based (just in case it makes a difference), and my application uses ARC. I have an NSArray of NSDictionary containing file information, and this is

Re: Protocols and forwardingTargetForSelector:

2014-02-25 Thread Greg Parker
On Feb 25, 2014, at 6:42 AM, jonat...@mugginsoft.com wrote: > I have an NSString subclass as below. > If the subclass doesn’t respond to a given selector I want to forward the > selector to another object. > > What is the best way to declare the interfaces for DBManagedString and > DBManagedObje

Re: Protocols and forwardingTargetForSelector:

2014-02-25 Thread jonat...@mugginsoft.com
On 25 Feb 2014, at 21:38, Greg Parker wrote: > On Feb 25, 2014, at 6:42 AM, jonat...@mugginsoft.com wrote: >> I have an NSString subclass as below. >> If the subclass doesn’t respond to a given selector I want to forward the >> selector to another object. >> >> What is the best way to declare

Re: Protocols and forwardingTargetForSelector:

2014-02-25 Thread Jonathan Hull
The @dynamic keyword tells the compiler not to worry about it (i.e. you are promising it that you are going to handle those selectors). Thanks, Jon On Feb 25, 2014, at 3:14 PM, jonat...@mugginsoft.com wrote: > > On 25 Feb 2014, at 21:38, Greg Parker wrote: > >> On Feb 25, 2014, at 6:42 AM,