[Drawkit] validateMenuItem:
Graham Cox
graham.cox at bigpond.com
Wed Jun 24 03:07:31 PDT 2009
On 24/06/2009, at 7:55 PM, V1ru8 wrote:
> *** -[NSRulerMarker
> initWithRulerView:markerLocation:image:imageOrigin:]: no image
> given. NSRulerMarkers must have an image.
>
> It's not important for me right now but I'm interested what I'm
> doing wrong again ;-).
Ah, must be fun out there on the bleeding edge... ;-)
I'm not exactly sure what the problem is, could be a number of things.
In the light of this though I've made the -createRulerMarkers method
more robust in that if it doesn't get the images it just skips the
setup - it's not the end of the word to have no ruler markers.
I recently made the -imageResourceNamed method a class method rather
than an instance method - it's really just a helper function for
getting images from the framework resources and should probably go
elsewhere, but this is the only place it's used at the moment. So it
means my version is different from yours, which might make all the
difference. If I get time I'll try subclassing and see what happens.
--Graham
More information about the Drawkit
mailing list