On 25/11/2012, at 10:21 PM, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> wrote:

> What does this mean? What can I do to get rid of these warnings?

Short answer: don't call -openUntitledDocument... on a thread other than main.

> [QL] QLError(): -[QLSeamlessDocumentOpener 
> showWindow:contentFrame:withBlock:] should only be called in the main thread
> CoreAnimation: warning, deleted thread with uncommitted CATransaction; 
> created by:
> 0   QuartzCore                          0x00007fff8db81b95 
> _ZN2CA11Transaction4pushEv + 219
> 1   QuartzCore                          0x00007fff8db8176d 
> _ZN2CA11Transaction15ensure_implicitEv + 273
> 2   QuartzCore                          0x00007fff8db8160a 
> _ZN2CA11Transaction9set_valueEj12_CAValueTypePKv + 40
> 3   QuartzCore                          0x00007fff8db8159e +[CATransaction 
> setDisableActions:] + 38
> 4   AppKit                              0x00007fff968fef6e -[NSScrollerImp 
> _updateLayerGeometry] + 67
> 5   AppKit                              0x00007fff968fe54d 
> -[NSScroller(NSInternal2) _replaceScrollerImp] + 368
> 6   AppKit                              0x00007fff96996828 -[NSScroller 
> initWithCoder:] + 305
> 7   Foundation                          0x00007fff8caa0a09 
> _decodeObjectBinary + 2741
> 8   Foundation                          0x00007fff8caa17e6 
> -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1189
> 9   Foundation                          0x00007fff8caa1d58 -[NSArray(NSArray) 
> initWithCoder:] + 538
> 10  Foundation                          0x00007fff8caa0a09 
> _decodeObjectBinary + 2741
> 11  Foundation                          0x00007fff8ca9fdb4 _decodeObject + 226
> 12  AppKit                              0x00007fff968186e1 -[NSView 
> initWithCoder:] + 976
> 13  AppKit                              0x00007fff96993dc7 -[NSScrollView 
> initWithCoder:] + 335
> 14  Foundation                          0x00007fff8caa0a09 
> _decodeObjectBinary + 2741
> 15  Foundation                          0x00007fff8ca9fdb4 _decodeObject + 226
> 
> 10.8.2
> Xcode 4.5.2
> 
> And I do not have any ScrollViews in my app.
> 
> My app delegate observes "operationCount" of my operationQueue and when this  
> operationCount becomes zero (i.e. when the work has been done), I open a new 
> document (openUntitledDocumentAndDisplay:error:).

> 
> When I comment this call out, the warning goes away.
> 
> But why is this thing complaining about not running in the main thread?
> Rather confusing.


Because the observation is on another thread, so when the observer is 
triggered, it's still on the operation queue's thread. Invoke the document 
opening request on the main thread and you'll be fine.

--Graham



_______________________________________________

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