• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Beginner questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >RE: Beginner questions (From: Timothy Mowlem <email@hidden>)

  • Prev by Date: Re: Does textDidEndEditing lunches other class methods?
  • Next by Date: Re: Files and arrays
  • Previous by thread: RE: Beginner questions
  • Next by thread: Re: Beginner questions
  • Index(es):
    • Date
    • Thread