Changing the appearance of buttons

2011-11-08 Thread Tom Jeffries
code available? Thanks, Tom Jeffries ___ 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

Re: Changing the appearance of buttons

2011-11-08 Thread Tom Jeffries
Mac. sent from my mobile phone On Nov 8, 2011 1:37 PM, "Mike Abdullah" wrote: Mac or iOS? On 8 Nov 2011, at 18:52, Tom Jeffries wrote: > This is probably an elementary question. I need to... > ___ > > Cocoa-dev m

Using custom controls on top of custom graphics

2012-02-07 Thread Tom Jeffries
c for the slider area and for the knob. Can someone point me to some source code that shows how to do this? Thanks, Tom Jeffries ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Keyboard handlers

2011-03-14 Thread Tom Jeffries
ay to trap events? NSEvent looks like it might work, is there any sample code I can reference? Thanks for any help, Tom Jeffries ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Refreshing an NSView

2011-04-13 Thread Tom Jeffries
I seem to be missing something, and it's probably something quite obvious. In the initialization to an NSView subclass window, I do the following: - (void) drawRect:(NSRect)dirtyRect { [StepWindow DrawStepArea]; } DrawStepArea is a simple function that draws some lines on the screen- here's

Using an iPhone to control a Mac- source code?

2011-05-26 Thread Tom Jeffries
so I don't have to wade through the whole networking protocol. Suggestions? Thanks, Tom Jeffries ___ 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

Building, installing, and testing drivers

2011-06-10 Thread Tom Jeffries
s - How do I build an install for the drivers? Thanks, Tom Jeffries ___ 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)l

drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
button on the second window. I've tried awakeFromNib, setNeedsDisplay, needsDisplay, and display, but nothing I've found so far gets the NSView window to call drawRect. I am fairly new to OS X programming and appreciate any hints you can throw my way. Thanks, To

Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
t; On 24/07/2011, at 1:46 PM, Tom Jeffries wrote: > > When I put both the beginning graphics and the graphics that are to be > drawn > later in the initial drawRect call everything is drawn without a problem. > However, drawRect does not get called when the user clicks the button

More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
I appreciate the answers, so far everything that's been suggested is something I've tried. Maybe if I put the code out somebody will see what I'm doing wrong: This is the function that is called by the mouse click, it's in another module: + (BOOL) Play { // init code [SequeraStepWindow DrawCu

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
a question here. Thanks, Tom On Sun, Jul 24, 2011 at 10:45 AM, Jens Alfke wrote: > > On Jul 24, 2011, at 10:11 AM, Tom Jeffries wrote: > > + (BOOL) Play > > > It’s hard to tell what’s going on in the code when you’re not following > Cocoa naming conventions. Methods should

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
Jul 24, 2011 at 11:38 AM, Patrick William Walker < patrick.william.wal...@nb.sympatico.ca> wrote: > > On 2011-07-24, at 2:11 PM, Tom Jeffries wrote: > > > I appreciate the answers, so far everything that's been suggested is > > something I've tried. Maybe if I p

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
On Sun, Jul 24, 2011 at 12:12 PM, Andy Lee wrote: > You should know that it is most certainly possible to use that syntax with > a variable. For example: > >NSString *myString = @"abc"; // <== a variable >NSString *newString = [myString copy]; // <== a message send > > You can send mess

drawRect not getting called problem solved

2011-07-28 Thread Tom Jeffries
I appreciate all the comments on the problem I had with drawRect not getting called. I finally extracted the code that was not working and put it in a new program, and it worked perfectly. I'm still not sure whether there was a problem in my code or if I unearthed a problem in Cocoa, but I'm now