(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
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
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
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
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
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
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
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,
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