Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Vertical Orientation of NSSliderCell and usage within an N..

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  XL4 Macros Error - Font Size Must Be Between 1 an..  
Author Message
slashlos

External


Since: Nov 13, 2005
Posts: 111



(Msg. 1) Posted: Sun Feb 10, 2008 12:40 pm
Post subject: Vertical Orientation of NSSliderCell and usage within an NSMatrix
Archived from groups: comp>sys>mac>programmer>help (more info?)

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?
--
/los "I was a teenage net-random."

 >> Stay informed about: Vertical Orientation of NSSliderCell and usage within an N.. 
Back to top
Login to vote
John C. Randolph

External


Since: Dec 08, 2005
Posts: 44



(Msg. 2) Posted: Tue Feb 26, 2008 1:02 am
Post subject: Re: Vertical Orientation of NSSliderCell and usage within an NSMatrix [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-02-10 09:40:37 -0800, slashlos said:

> 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?

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

 >> Stay informed about: Vertical Orientation of NSSliderCell and usage within an N.. 
Back to top
Login to vote
slashlos

External


Since: Nov 13, 2005
Posts: 111



(Msg. 3) Posted: Wed Feb 27, 2008 1:09 pm
Post subject: Re: Vertical Orientation of NSSliderCell and usage within an NSMatrix [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

John C. Randolph wrote:

> 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
>
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.

--
/los "I was a teenage net-random."
 >> Stay informed about: Vertical Orientation of NSSliderCell and usage within an N.. 
Back to top
Login to vote
slashlos

External


Since: Nov 13, 2005
Posts: 111



(Msg. 4) Posted: Tue Mar 25, 2008 8:02 pm
Post subject: Re: Vertical Orientation of NSSliderCell and usage within an NSMatrix [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

John C. Randolph wrote:

> 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

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"
 >> Stay informed about: Vertical Orientation of NSSliderCell and usage within an N.. 
Back to top
Login to vote
slashlos

External


Since: Nov 13, 2005
Posts: 111



(Msg. 5) Posted: Tue Mar 25, 2008 8:56 pm
Post subject: Re: Vertical Orientation of NSSliderCell and usage within an NSMatrix [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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?

--
/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
____________________________________________________________________
 >> Stay informed about: Vertical Orientation of NSSliderCell and usage within an N.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
OSX vertical blanking outside openGL ? - I am trying to set up a simple program in OSX 10.4 to display 2D graphics bitmaps, one image per frame. It works very nicely to set up a bitmap and write to an image, then flush the image using CG calls. However there is a lot of frame tearing evidentl...

OSX vertical blanking outside openGL ? - I've set up a simple direct display routine using CGDisplayBaseAddress() CGDisplayCapture() CGDisplayBeamPosition() and would like to find a way to increase priority to reduce time slice stealing by background processes (e.g. disk access,..

OSX vertical blanking outside openGL ? - I've set up a simple direct display routine using CGDisplayCapture() CGDisplayBaseAddress() CGDisplayBeamPosition() which are available from OSX Core Graphics. I've increased the speed by double buffering, i.e. interpreting contrast values as RGB...

OSX vertical blanking outside openGL ? - I've looked at OpenGL and understand the promise. However I imagine that even OpenGL on Mac OSX must use calls to Core Graphics routines of some sort. One might think that DMA could help to speed things up. This is true with double buffering where a..

vertical font centering in cocoa - i want to vertically center a line of text inside a rect, and draw it in a certain font. -(void)drawString:(NSString*)string inRect:(NSRect)rect font:(NSFont*)font { NSDictionary* attr = nil; float hght = [font..
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]