NSColorWell inside a custom NSCell

2011-04-21 Thread Bryan Hansen
I'm trying to develop a gradient control using multiple custom NSCells to control the gradient color locations. I'd like to have an NSColorWell contained within each cell. I have the interactions working correctly as they are all handled by the cell itself but can not seem to get the color wells

Custom view with NSTreeController

2011-01-01 Thread Bryan Hansen
I'm trying to create a custom view which is backed by an NSTreeController. I've seem many threads discussing this without any real specific resolution. I'm familiar with how to get an NSOutlineView to bind to an NSTreeController but getting a custom view to replace the outline view is a challeng

Instruments UI Recorder and Screenshots

2009-11-10 Thread Bryan Hansen
Hello, I've been playing around with the UI Recorder functionality in Instruments and I'm interested in taking a screenshot after a UI Recorder playback has occurred. Does anyone know if this is possible? It looks like you can create your own instruments which can run scripts, so I though

Design for custom tableviewcell button action

2009-06-24 Thread Bryan Hansen
I'd like to add a custom button to my own custom tableview subclass that will perform an action on the tableviewcontroller class. This is pretty much identical to the way accessoryviews call a method on the tableviewdelegate when it is tapped. The difference is it will be my own button plac

MPMediaItem valueForKey broken?

2009-03-28 Thread Bryan Hansen
I'm trying to use the new MPMediaItem class in iPhone SDK 3.0 to obtain artist and album information. Every time I try to retrieve a value based on the key constants it crashes telling me that it is not key complaint for that key (ie "title" or "artist" etc) NSString *aTitle = [[MPMusicPlay

Custom button states?

2009-02-26 Thread Bryan Hansen
Can someone explain if it is possible to use UIControlStateApplication for a UIButton to create a new custom button state in my UIButton subclass. It seems like this may be the way to do it, but there are no examples to be found and google results are few and far between. If its not the cor

Safari Contextual Menu

2008-12-30 Thread Bryan Hansen
I'm interested in creating a contextual menu in Safari and other apps based on the text or selection the user clicked on. It seems like there are some apps that pull this off, but there doesn't seem to be a straightforward method. Do I need to create a CMM plugin? I've looked at the CMM exa

Animating frame width on UIButton with background image

2008-11-13 Thread Bryan Hansen
Is it possible to animate the width of a UIButton of UIButtonStyleCustom type? I have an animation on frame size which works fine when the UIButton is a UIButtonTypeRoundedRect. But has no visible affect when I am using a UIButtonStyleCustom with background image. I am trying to use a backg