Re: how to know a window finishes resizing

2008-05-07 Thread Jeff Nouwen
On May-7-2008, at 7:01 AM, Norio wrote: Would you tell me how to know a window finishes resizing? I know windowDidResize can track its resizing, but I don't want to get information while the window resizing. I do want to know after user releases the mouse button or presses zoom icon.

Re: Disabling screen turning off

2008-05-02 Thread Jeff Nouwen
On May-2-2008, at 2:26 AM, Jere Gmail wrote: I know I can stop the machine from going to sleep through calling the function UpdateSystemActivity ( UInt8 activity ); But I also want to stop it from turning off the screen, as quicktime or vlc do. How can I do this? Pass in UsrActivity as

Re: -windowDidLoad not getting called

2008-04-21 Thread Jeff Nouwen
On Apr-21-2008, at 6:34 PM, Rick Mann wrote: I basically want my controller to go do some stuff after it and the window are loaded. -setWindow seems like an ugly place to do this, and -init is probably too early. Is there a better place? - (void)awakeFromNib - Jeff

Re: NSTreeController, canRemove binding

2008-03-22 Thread Jeff Nouwen
On Mar-22-2008, at 3:20 AM, Alexey Zakhlestin wrote: I have NSOutlineView bound to NSTreeController Additionally, I have a button, which is bound to canRemove of NSTreeController. Unfortunately, button never gets disabled (even if I have an empty selection in NSOutlineView) I've run into this

Value binding not updating on text field

2008-02-28 Thread Jeff Nouwen
Hi all, I have an NSSlider and NSTextField in a window. The Value of the text field is bound to the instance of my controller in the nib with a key path of slider.floatValue. slider is an instance variable of the controller and the outlets are set correctly (confirmed through NSLog'ing