Friday, May 25, 2007
FPImageReflection
FPImageReflection is a class that draws an NSImage, along with its "reflection" (like in the iTunes movie browser) in a designated rect.
Example project:
ImageReflectionTest.tar.gz (92k)
Enjoy!
EDIT: Thanks to Peter for the suggestion.
Labels:
Cocoa,
NSImage,
Reflection
Thursday, May 24, 2007
MacAlarm
In my spare time over the past month or so, I've begun work on a small app called MacAlarm. It's an alarm clock (well named, eh?).
It's a very simple application and it's been a joy so far working on it. The core functionality is done and I'm finishing up some UI stuff. My favorite feature is the resizing alarm clock view.
It's going to be released under the GPL or a comparable open source license in the next few weeks.
And, of course, MacAlarm is written in Cocoa :-)
It's a very simple application and it's been a joy so far working on it. The core functionality is done and I'm finishing up some UI stuff. My favorite feature is the resizing alarm clock view.
It's going to be released under the GPL or a comparable open source license in the next few weeks.
And, of course, MacAlarm is written in Cocoa :-)
Tuesday, May 15, 2007
Dragging an Image in a Cocoa View
I wrote the following code for a poster on the Cocoa-dev mailing list. It's an NSView subclass that has an image "inside it" that you can drag around.
ImageDragView.h & ImageDragView.m
Hopefully someone else might find that useful :-)
ImageDragView.h & ImageDragView.m
Hopefully someone else might find that useful :-)
Labels:
Cocoa,
event handling,
Mac,
NSView,
Programming
Subscribe to:
Posts (Atom)

