yo, I'm randomly tooling around with NSCell and NSControl. I wrote a quick test just to experiment with. It's a scale nine button.
Here's a couple snippets on pastebin. They're really small. GDScale9Button.m: http://pastebin.com/MUV3EBma GDScale9ButtonCell.m: http://pastebin.com/YCG7Dv9V Scale9AppDelegate.m: http://pastebin.com/Brx2j66N (uses the button) -How does a button cell's bezel style influence the tracking rect or hit state for the mouse? I've noticed that depending on the bezel style, the "hit state" of the button does not always reflect the entire frame of the button. In my example, the bezel style is NSRoundedBezelStyle, and even though the button's frame is a square, the actual hit area of the button is the typical aqua pill shape. -What's the best way to track mouse states in a cell? I see the mouse tracking handling, but isn't that mostly for tracking when the mouse is in the cell frame? As an example, let's say I wanted to have a "down" image for the scale 9 button. In the cell, how would I know to draw the other down image? Would I use the "state" variable of NSCell to pick up when it's in the "on" state and that's considered pushed? Meaning the mouse is down? -Another question about bezel style. How come if you don't set a bezel style the buttons draw the old NextSTEP style buttons? It's essentially a black border, with the right/bottom edges having two pixels. I would think the default would just be the aqua pill buttons? Thanks! _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com