IOCreatePlugInInterfaceForService()

2008-06-05 Thread Nathaniel Gottlieb-Graham
(I cross-posted this to the USB list, but I suspect the traffic it'll see here is much greater. Sorry!) I'm pretty new to USB-related programming, so I'm sure I'm doing something dumb here. I'm trying to write a listener that listens for keypresses from a connected USB button board. The

substitute class at runtime?

2008-07-18 Thread Nathaniel Gottlieb-Graham
I need to be able to initialize a class, but I don't necessarily know what kind of class it'll be at compile time. Consider the following example in which the name of a class is checked against an array of class names, and if the name of the class is present in the array, a new instance of

global NSMutableDictionary

2008-07-29 Thread Nathaniel Gottlieb-Graham
I am trying to implement a global variable that's an NSMutableDictionary. Up until now I've achieved this by making globalVariables.h and .m files to hold globals that are imported by all my classes. globalVariables defines externs, and I already have two extern NSStrings set up and worki

Re: global NSMutableDictionary

2008-07-29 Thread Nathaniel Gottlieb-Graham
57 PM, Nathaniel Gottlieb-Graham <[EMAIL PROTECTED]> wrote: I am trying to implement a global variable that's an NSMutableDictionary. In addition to Bill's response, I'd like to take a different direction. :-) Why are you trying to implement this as a global? Typically (in the w

Where'd my debugging statements go?

2008-07-29 Thread Nathaniel Gottlieb-Graham
All of the sudden, Xcode (3.1) no longer logs any NSLog or printf statements to the console. I have no idea what caused this, since it just randomly started happening after a compile, and even log statements which are *obviously* reachable don't output anything at all! Help? Thanks, Nat

Stupid question: how do you show an NSWindow?

2008-03-10 Thread Nathaniel Gottlieb-Graham
This is going to sound really stupid, but how do you show an NSWindow? [aWindow close] seems to be the appropriate method to close it, but idiotically enough, I can't seem to find a way re-show the window once it's no longer on-screen. [aWindow makeKeyAndOrderFront:sender] will only bring

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Nathaniel Gottlieb-Graham
Yup, The windows were released when closed, and I was using -close rather than -orderOut. Thanks guys! On Mar 10, 2008, at 2:31 PM, Matt Mashyna wrote: On Mar 10, 2008, at 2:12 PM, Nathaniel Gottlieb-Graham wrote: This is going to sound really stupid, but how do you show an NSWindow

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Nathaniel Gottlieb-Graham
Okay, now I have another problem. When the window in question is closed programmatically using -orderOut:, I can bring it back using - makeKeyAndOrderFront: , and then order it out again and repeat this procedure as many times as I want. However, when I click on the window's close button,

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Nathaniel Gottlieb-Graham
clicking the close button. Anything in the console? Mike. On 10 Mar 2008, at 21:40, Nathaniel Gottlieb-Graham wrote: Okay, now I have another problem. When the window in question is closed programmatically using -orderOut:, I can bring it back using -makeKeyAndOrderFront: , and then order it out