OrderFront - NSPanel
I have this code:
[hudWindow orderFront:nil];
hudWindow
is a NSPanel.
When I debug it and run, the command does not seem to work. I don't get any error messages in the console, and the HUD Window doesn't appear when I call it.
Make sure you hooked up the hudWindow
outlet in IB. If you didn't, the outlet variable contains nil
, so you're sending a message to nil
, which does nothing.
精彩评论