Changing the background of a NSScrollView

2009-07-19 Thread Richard Bannister
Folks I'm trying to draw into the background of a NSScrollView - specifically I have custom content I want to fill up the space with other than a solid colo(u)r. I'm slightly at a loss as to how to do this. Has anyone solved this problem already? Thanks in advance. Richard

setContentAspectRatio on window

2009-01-06 Thread Richard Bannister
Folks, I'm using setContentAspectRatio to constrain the dimensions of a window to either 4:3 or 16:9. However, I'd also like the ability to subsequently remove the constraint altogether. If I'm reading the API right then I should be able to do a setContentAspectRatio with a NSSize specify

NSButton referencing outlet won't work?

2009-02-07 Thread Richard Bannister
Folks, I'm sure this qualifies as a newbie question, but I've just spent an hour trying to figure something out and I'm stumped... I am building a NSDocument-based application. The main document window has a NSButton in it, with a referencing outlet connected to the following: @interfac

Re: NSButton referencing outlet won't work?

2009-02-07 Thread Richard Bannister
On 7 Feb 2009, at 20:02, cocoa-dev-requ...@lists.apple.com wrote: I'm sure this qualifies as a newbie question, but I've just spent an hour trying to figure something out and I'm stumped... And wouldn't you know, two minutes after asking the question I worked it out. awakeFromNib. Duh. S

NSRulerView custom labels

2009-02-14 Thread Richard Bannister
Folks I'm working on an app that will be using timestamps in a NSRulerView - in the format 0:01, 0:02, et al. As far as I can determine I can't do this directly by registering a special unit as there does not appear to be any support for two part units of this form. The header file for