• 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: Manipulating Windows Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manipulating Windows Question


  • Subject: Re: Manipulating Windows Question
  • From: email@hidden
  • Date: Mon, 11 Mar 2002 12:02:40 -0800

Is there a way to resize/relocate windows BEFORE they are visible on the
screen? I'm instantiating the windows from nib files, and whenever I try
to [dfxPropPanel setFrame:newWindowLoc display:YES]; with new origins,
it doesn't work unless the window is already visible on the screen. Of
course this works, but it looks really ugly, as the window jumps from
it's initial location to the new one.

This should work fine, and in fact I do it all the time. Are you sure you're not trying to move the window before you've even loaded the nib? Have you tried doing an NSLog of the window's frame before and after you try to set it, to see whether it has taken effect?
You might try passing NO for display:, since you don't in fact want your window to redisplay, as it's not visible. It's possible this is causing the whole operation to fail, although I think that would be a bug worthy of logging...

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: Drag&Drop of text files
  • Next by Date: How to insert a progress indicator in each row of a table
  • Previous by thread: Manipulating Windows Question
  • Next by thread: What's the better usage in IB.
  • Index(es):
    • Date
    • Thread