Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / March 2008



Tip: Looking for answers? Try searching our database.

Vertical Orientation of NSSliderCell and usage within an NSMatrix

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
slashlos - 10 Feb 2008 17:40 GMT
I'm thinking out loud on how to satisfy a need...

I need a control which visually appears to be those of a graphic
equalizer, or a series of slider cells with vertical orientation.
However, in IB (v3) the slider cells are only horizontal?

I guess I need to create a vertically oriented slider cell that I would
drop onto each cell of an NSMatrix; this cell would be subclassed from
NSSliderCell and somehow draw itself vertically; but how do get IB to
use this custom cell?

In prior xcode versions the notion of an IB palette is now gone in v3
but are there examples showing the steps I'll need?
Signature

/los  "I was a teenage net-random."

John C. Randolph - 26 Feb 2008 09:02 GMT
> I'm thinking out loud on how to satisfy a need...
>
[quoted text clipped - 9 lines]
> In prior xcode versions the notion of an IB palette is now gone in v3
> but are there examples showing the steps I'll need?

Grab a vertical slider from the object library.  Drag it into your
window.   Select it.  Choose "Layout->Embed Objects In->Matrix" from
the menu bar.  HIt command-I to get the inspector window.  Select the  
Attributes inspector, and use the steppers or the text field to enter
the number of rows and/or columns you want in your matrix.

-jcr
slashlos - 27 Feb 2008 18:09 GMT
> Grab a vertical slider from the object library.  Drag it into your
> window.   Select it.  Choose "Layout->Embed Objects In->Matrix" from the
[quoted text clipped - 3 lines]
>
> -jcr

Thanks!!!! Believe it or not, I had just found this out; the 'Embed in
Matrix' option off the menu; that alone was worth moving to v3. I found
that you'd want to setup the slider attributes first, replicate, then
embed in the matrix. Thanks again.

Signature

/los  "I was a teenage net-random."

slashlos - 26 Mar 2008 01:02 GMT
> Grab a vertical slider from the object library.  Drag it into your
> window.   Select it.  Choose "Layout->Embed Objects In->Matrix" from the
[quoted text clipped - 3 lines]
>
> -jcr

Sorry, day job got in the way;-) I just tried this with the slider and
several other controls in IB's "run" mode and nothing seems to work or
interact as I'd expect. Seem you can't un-embed them either. If I create
individual sliders they work just fine, just not when assembled into a
matrix.

Has anyone tried this feature (of matrix embedding) successfully?

p.s. I also for some reason can't get a level indicator to work at all
so the problem might be in my nib somewhere?

/los "I was a teenage net-random"
slashlos - 26 Mar 2008 01:56 GMT
> p.s. I also for some reason can't get a level indicator to work at all
> so the problem might be in my nib somewhere?

Well, I'd created a new new and can't get a level indicator to work at
all. All I did was create a new empty nib, drop in a window and place a
level indicator in it and tried to %R (test it); it has no interaction
at all;

Similarly trying a slider (horz or vert) individually works fine but
when encased into a matrix it becomes inoperative.

Am I missing something on either account?

Signature

/los  "I was a teenage net-random."

____________________________________________________________________
Carlos D. Santiago                              Phone: 516/447-7368
Data Server Division                           Mobile: 516/446-9902
Oracle Corporation                Pager: 800-PAGE-MCI: PIN/159-5026
____________________________________________________________________

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.