[Mono-osx] NSApp global
David Rivera
mithril at me.com
Wed Oct 27 17:24:26 EDT 2010
I think I originally sent the reply wrong, so here it is again.
The attached test case always shows NSApplication.SharedApplication as null for me.
-Dave R
On Oct 27, 2010, at 4:15 PM, Geoff Norton wrote:
> Just zip it up and email it.
>
> From: David Rivera <mithril at me.com>
> Date: Wed, 27 Oct 2010 16:14:06 -0500
> To: <gnorton.novell at gmail.com>, Mono-osx Mailing List List <mono-osx at lists.ximian.com>
> Subject: Re: [Mono-osx] NSApp global
>
> How would you like the test case? Given its a monomac app, several files involved, including a xib file, not quite sure how to consolodate that so that it would be useful for you...
>
> -Dave R
>
> On Oct 27, 2010, at 4:09 PM, Geoff Norton wrote:
>
>> Could you please send me a test case?
>>
>> From: David Rivera <mithril at me.com>
>> Date: Wed, 27 Oct 2010 16:08:29 -0500
>> To: <gnorton.novell at gmail.com>, Mono-osx Mailing List List <mono-osx at lists.ximian.com>
>> Subject: Re: [Mono-osx] NSApp global
>>
>> The app has fully loaded. I am trying to do it via a button click in the main window, and everything else in the window is working. I am accessing it from the main windows controller class where my button action is handled, currently.
>>
>> -Dave Rivera
>>
>> On Oct 27, 2010, at 4:05 PM, Geoff Norton wrote:
>>
>>> When are you doing it?
>>>
>>> Has NSApplication kicked into the NSApplicationDelegate (or later) ?
>>>
>>> -g
>>>
>>>
>>> From: David Rivera <mithril at me.com>
>>> Date: Wed, 27 Oct 2010 16:02:14 -0500
>>> To: <gnorton.novell at gmail.com>, Mono-osx Mailing List List <mono-osx at lists.ximian.com>
>>> Subject: Re: [Mono-osx] NSApp global
>>>
>>> This doesn't seem to be getting populated. I'm trying to get a sheet working, but NSApplication.SharedApplication always seems to be null for me. Any ideas why?
>>>
>>> -Dave Rivera
>>>
>>> On Oct 27, 2010, at 9:05 AM, Geoff Norton wrote:
>>>
>>>> NSApplication.SharedApplication if I remember correctly.
>>>>
>>>> -g
>>>>
>>>>
>>>> From: <gareth.baker at stfc.ac.uk>
>>>> Date: Wed, 27 Oct 2010 11:17:55 +0100
>>>> To: <gnorton.novell at gmail.com>, <mono-osx at lists.ximian.com>
>>>> Subject: [Mono-osx] NSApp global
>>>>
>>>> In the objective-C Cocoa world the variable NSApp is declared globally. Is there an equivalent global variable in MonoMac?
>>>>
>>>> Thanks
>>>> Gareth Baker
>>>>
>>>> ----
>>>> Ecc 10 vv8&9
>>>>
>>>> Whoever digs a pit may fall into it;
>>>> whoever breaks through a wall may be bitten by a snake.
>>>> Whoever quarries stones may be injured by them;
>>>> whoever splits logs may be endangered by them.
>>>>
>>>> ca 250-200BC
>>>> (the first Risk Assessment?)
>>>>
>>>>
>>>>
>>>> --
>>>> Scanned by iCritical.
>>>>
>>>> _______________________________________________ Mono-osx mailing list Mono-osx at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-osx
>>>> _______________________________________________
>>>> Mono-osx mailing list
>>>> Mono-osx at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>>
>>> _______________________________________________ Mono-osx mailing list Mono-osx at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-osx
>>
>> _______________________________________________ Mono-osx mailing list Mono-osx at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-osx
>
> _______________________________________________ Mono-osx mailing list Mono-osx at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0002.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestingNSApp.zip
Type: application/zip
Size: 24433 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0001.zip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0003.html
More information about the Mono-osx
mailing list