[MacRuby-devel] NSTrackingArea

Kam Dahlin haxie1 at me.com
Wed Apr 27 09:07:11 PDT 2011


Hi,

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSTrackingArea_class/Reference/Reference.html

Looks like the initializer is:

– initWithRect:options:owner:userInfo:

Try something like:

tc = NSTrackingArea.alloc.initWithRect(self.bounds, options:(NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways), owner:self, userInfo:nil)

hth

k
On Apr 27, 2011, at 8:39 AM, Thomas R. Koll wrote:

> tracking_area.initWithRect

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110427/faeb34e6/attachment.html>


More information about the MacRuby-devel mailing list