Skip navigation.
 
mlRe: Plugin locks widget under Tiger
FROM : Ben Robinson
DATE : Mon Feb 04 02:00:30 2008

Thanks for your help

I didn't have that line, so I've added it - and it has made no 
difference?!

The only thing I do before beginModalSessionForWindow is setup the 
window contents and size, and the nib is loaded when the plugin is 
loaded.

I can share more of the code if it will help?


Ben.


On 1 Feb 2008, at 5:34, John Stiles wrote:

> Did you do
>  [theDialogWindow makeKeyAndOrderFront:NULL]
> before beginning the modal session?
>
>
> Ben Robinson wrote:

>> Hi, I'm hoping someone will be able to point me in the right 
>> direction - I've done a little bit of searching, but I don't really 
>> know what I'm looking for, the error probably simply comes from my 
>> very limited knowledge of cocoa (and the debugging tools I should 
>> be looking at)!!
>>
>> Anyway - I've written a plugin for a Dashboard Widget (my first 
>> proper bit of code) that simply opens a dialog window.  I wrote it 
>> in Xcode 3 on Leopard and everything works fine, but I come to test 
>> it on Tiger and it fails.
>>
>> To open the window I use the line:
>> [NSApp beginModalSessionForWindow:theDialogWindow];
>>
>> And after this line has executed, the widget itself no longer 
>> excepts keyboard entry.  The dialog window is fine and works and 
>> the widget seems ok as you can still flip it and press buttons, and 
>> it responses to callbacks from the plugin, but all key presses 
>> simply result in an error beep - incl cmd-r
>>
>> I'm really confused over what I might try to resolve this
>>
>>
>> Any help would be fantastic, thanks
>>
>>
>> Ben.
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (<email_removed>)
>>
>> 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/<email_removed>
>>
>> This email sent to <email_removed>

> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlPlugin locks widget under Tiger Ben Robinson Feb 1, 12:25
mlRe: Plugin locks widget under Tiger John Stiles Feb 1, 18:34
mlRe: Plugin locks widget under Tiger Ben Robinson Feb 4, 02:00