Re: [Pyobjc-dev] Altered classes
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@CO...> - 2001-05-11 17:19:35
|
Basically, pyobjc mangles the ObjC selector names by substituting _ for each : (because : is reserved in python). The second problem sounds more like an Appkit initialization problem-- did you have a look at Steve's AppKit example? Make sure something like that works first, then try loading the NIB. If the NIB loading is still broken, then we have an additional initialization phase at the AppKit level we haven't taken care of yet. As well, there will be a certain line beyond which we really, really, really need to have the Main Event Loop running to do anything from Python to the Appkit... Has anyone tried creating a Python object and setting it as NSApp's delegate, then seeing if you could grab notifications?? b.bum On Friday, May 11, 2001, at 12:26 PM, Deirdre Saoirse Moen wrote: >> Deirdre, >> >> Quick question; shouldn't "loadNibNamed_owner" be >> "loadNibNamed_owner_" in this context? > > I must confess - I don't understand the distinction and I could have > sworn that I'd tried it both ways, but it DOES work. ::sigh:: Meaning > that it doesn't give an error, not necessarily that it does what it's > supposed to. > > I *used* to be awake when I was coding at 2 a.m., but I must be getting > old. :) > > I *am* getting an error, upon subsequent launches, of: > kCGSErrorNoneAvailable : CGSOrderFrontConditionally: Process not found > > ...and the Window that was defined in code is inactive (it shows, but > doesn't accept clicks or anything). Meaning I'm going to have to log > out or something to clean it up. Ugh. > > -- _Deirdre Stash-o-Matic: http://weirdre.com > http://deirdre.net > Macintosh Developer (seeking work): Will work for Cocoa > "I love deadlines. I like the whooshing sound they make as they fly by." > - Douglas Adams > > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > http://lists.sourceforge.net/lists/listinfo/pyobjc-dev |