I've seen lots of references to this on the Web, but nothing that seems relevant to what I'm seeing. I've had a report of this happening in my app, and I've seen it once myself -- it's not exactly repeatable. The method in question is an undo method, and the crash was not provoked by undoing.
If I understand correctly, the arguments when I use prepareWithInvocationTarget: are retained. In this case the target is the document's sole window controller and owner of the nib, so it's not like it's disappearing. scriptViewContents is the text storage of two text views. I'm using ARC. The actual line of code is: [[[[self window] undoManager] prepareWithInvocationTarget:self] unCompileWith:[[doc scriptViewContents] copy] at:sel1 and:sel2]; It's called in a block using: [[NSOperationQueue mainQueue] addOperationWithBlock:^{ And the method sig is: -(void)unCompileWith:(NSAttributedString *)attString at:(NSRange)sel1 and:(NSRange)sel2 I'm perplexed as to where to start looking. -- 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