On 22/08/2013, at 3:42 PM, Graham Cox <graham....@bigpond.com> wrote:

> Is there is any possibility that 'self' is not what you think it is? If 
> that's confused, then the proxy is simply reflecting the fact that the object 
> 'self' points to doesn't respond to the selector (since its own 
> -respondsToSelector: method just calls the target's).

Not that I can see. Unless...
> 
>> It's called in a block using:
>> 
>> [[NSOperationQueue mainQueue] addOperationWithBlock:^{
> 
> Is there a good reason to do this? Adding an operation to the main queue 
> doesn't really give you much. Blocks complicate things. If you can just call 
> your undo manager -prepare… directly at the point where it's needed, it might 
> flush out the problem, or even fix it.

The process takes a fair amount of time -- it could even be a minute or more -- 
so I'm doing it on a background operation queue. Only if that first part goes 
fine do I update the UI with the result in an undoable fashion, using the 
above. I'm not sure there's a better way.


-- 
Shane Stanley <sstan...@myriad-com.com.au>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to