Two really stupid questions
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