> You’re trying to run a sheet as a modal panel; that’s not how it’s done. > Instead you open the sheet and return to the main event loop (i.e. delete > the last three lines). It runs asynchronously.
But that's straight from the docs. http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Sheets/Tasks/UsingAppModalDialogs.html#//apple_ref/doc/uid/TP40001207-BABFIBIA and even if when I used this approach http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCustomSheets.html#//apple_ref/doc/uid/20001290-BABFIBIA I get the same behavior: I cannot click/focus the NSTextFields. What I've also tried: check the "visible at launch" so the panel just appears on app start. So there is no beginSheet: involved - and still I cannot click/focus the NSTextFields. However - whatever sheets example I found - I just added an NSTextField and it just works. (e.g. http://cocoawithlove.com/2011/05/presenting-mac-dialog-sheet-with-visual.html ) So next I re-created the NSPanel step-by-step. As it turns out unchecking "resize" on the NSPanel causes this weird behavior. Any ideas why that is the case? A bug? This is on 10.6.8 with the 10.6 SDK and Xcode 4.1 (4B110f) cheers, Torsten _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com