From: Kevin W. <kw...@co...> - 2009-08-09 14:00:56
|
(copying to the list for posterity) Hey KaKaRoTo, Glad you found that reference helpful. I also had to use NSApplicationLoad() in a couple of my Tk extensions that call into Cocoa methods, and it works great...my Cocoa-based Tk extensions work equally well with Cocoa and Carbon Tk. Best, Kevin On 8/9/09 4:58 AM, Youness Alaoui wrote: > Hey Kevin! > Thanks for answering me! > No, I didn't find any document like that, I've just read it quickly and > it's EXACTLY what I needed, thanks a lot for your help! I've now changed > my code to use NSApplicationLoad() instead of [NSApplication > sharedApplication] and removed all the cocoa event loop timer and it > works flawlessly now! Even clicking on the dock makes it open my main > window now, as expected! > I still can't cycle through my windows, but I really don't care about > that.. there are no more lost events, code is simpler, and the windows > work fine! :) So thanks a lot for showing me that document! :) > Thanks, > KaKaRoTo! > > On Sun, Aug 9, 2009 at 12:27 AM, Kevin Walzer <kw...@co... > <mailto:kw...@co...>> wrote: > > > p.s.: yes I know about the Tk 8.5 Cocoa backport, but I don't > want to > use that since I want to keep 10.3.9 compatibility support for aMSN > > > > KaKaRoTo, > > Did you look at this document? > > http://developer.apple.com/documentation/Cocoa/Conceptual/CarbonCocoaDoc/CarbonCocoaDoc.html#//apple_ref/doc/uid/10000193 > > It discussed ways to integrate Cocoa GUI elements in a Carbon app, > and is not limited to HICocoaView. Some of these strategies might > work for you if you want to preserve 10.3.9 compat. > > --Kevin > > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com > > -- Kevin Walzer Code by Kevin http://www.codebykevin.com |