• 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: programmatic interface changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programmatic interface changes


  • Subject: Re: programmatic interface changes
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 17 Oct 2003 04:44:44 -0400

On Oct 17, 2003, at 2:04 AM, Ivan Kourtev wrote:

I am not sure how to start about (b). I assume I have to somehow 'construct' a new NSProgresIndicator interface element and 'tell' the window so show it at the certain location. Is this correct or not? In general, how does one go about dynamically changing interfaces as described (adding, deleting, etc. interface objects)?


You can create the items to be inserted in InterfaceBuilder... then just copy the view, or set it in the new parent view..

So, assuming that theSubView is a view containing the progressView (or the progressView itself).. theViewToPutItIn might be the windows contentView...

 setFrame:
 frame
 setFrameOrigin:
 setFrameSize:

alter the view location in the new window using one or more of the above... and then

[theViewToPutItIn addSubview:theSubView]
[theViewToPutItIn setNeedsDisplay:YES];


this http://www.snoize.com/Code/DisclosableView.tar.gz might serve as a useful example... you might be able to use it directly in fact.
_______________________________________________
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: 
 >programmatic interface changes (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: Re: Memory Leak while using NSTask repeatedly
  • Next by Date: Missing file, but it's right there...
  • Previous by thread: programmatic interface changes
  • Next by thread: Missing file, but it's right there...
  • Index(es):
    • Date
    • Thread