Re: Beginner questions
Re: Beginner questions
- Subject: Re: Beginner questions
- From: Andreas Mayer <email@hidden>
- Date: Sat, 16 Nov 2002 15:34:49 +0100
Am Samstag, 16.11.02 um 02:18 Uhr schrieb Timothy Mowlem:
(1) how do you hide (and re-show) a window in code?
NSWindow -orderOut:
NSWindow -orderFront: or -makeKeyAndOrderFront:
(2) how do you hide (and re-show) a view (e.g. a NSProgressIndicator)
in code?
You don't. You have to remove the view (NSView -removeFromSuperview)
and add it back later (NSView -addSubview:). Make sure to retain the
subview so it doesn't get deallocated when removed from it's superview.
(Actually, for an NSProgressIndicator there is another solution:
NSProgressIndicator -isDisplayedWhenStopped.)
(3) I saw one reference to the method/function random() but it is not
mentioned anywhere within the Foundation or AppKit refs that I can
see, so how do you use random numbers and where is the doc?
It's part of the standard C library. I don't think there's any
documentation installed for it. Try the web.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.