• 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
Two really stupid questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two really stupid questions


  • Subject: Two really stupid questions
  • From: Martin Hairer <email@hidden>
  • Date: Mon, 11 Jun 2007 15:04:13 +0100

Hi, there are two things that I've spend several hours yesterday trying to figure out without success, even though the first one is definitely trivial and the second one should be...

1. I usually create all my interfaces with InterfaceBuilder, but it so happens that I have to make a piece of interface programmatically. Somehow, after looking through Apple's docs for a few hours, I still haven't figured out how to create a small version of a slider programmatically. If anybody knows which is the right message to send to NSSlider or NSSliderCell, this would make me very happy ;-)

2. I use an NSSplitView in one of my windows. Somehow, when I resize the window, the view behaves in a bizarre way (basically it doesn't respect the values of constrainMaxCoordinate and constrainMinCoordinate returned by the delegate). I also tried implementing splitView:constrainSplitPosition:ofSubviewAt:, but it doesn't get called when the window is resized. Of course I could reset the split position in the window delegate, but this brings me to the second question which is what is the correct message to send to NSSplitView in order to change (and retrieve) the current split position?

Thanks a lot in advance,

Martin

HairerSoft
http://www.hairersoft.com/


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Two really stupid questions
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Preference pane target to current application
  • Next by Date: Re: Two really stupid questions
  • Previous by thread: Preference pane target to current application
  • Next by thread: Re: Two really stupid questions
  • Index(es):
    • Date
    • Thread