Hi Daniel,
the last one on the list (mine) has code which is getting very old and
crusty now - developed on 0.4 - I am not sure the code is all that useful
anymore - in fact i was just about to remove the examples.
Feel free to take copies of course (very soon) - but I a doubt there is too
much of
I just forked macruby website and want to add some new links in
documentation page. The problem is the website doesn't have a space for
that.
I'm thinking in create a new session inside
http://localhost:4331/documentation.html with the title "Misc" or "Another
Resources". My idea is share this link
By default #methods and friends do not return Objective-C selectors (especially
since a lot of ruby libraries are using this and cannot handle objc-style
selectors), but you can get them by passing the second argument as true.
$ /usr/local/bin/macirb
irb(main):001:0> framework 'Cocoa'
=> true
ir
Laurent,
Thanks! It works - I'm not sure what I did wrong, though. Maybe a typo? :-X
By the way, is it possible to see what Objective-C methods an object can
respond to?
NSObject/Object#methods doesn't seem to list them on my side?
Thanks,
Rob
On 24 Apr 2010, at 21:34, Laurent Sansonetti wrote
Also, note that you can use a symbol too, which is more efficient (they are
only created once):
> NSNotificationCenter.defaultCenter.addObserver(self, selector:
> :"track_finished:" name:QTMovieDidEndNotification, object:nil)
Laurent
On Apr 24, 2010, at 1:32 PM, Thibault Martin-Lagardette wrot
Hi Robert,
At a glance it seems to be callable:
$ ./miniruby -e "framework 'Cocoa'; pb = NSPasteboard.generalPasteboard; p
pb.canReadObjectForClasses([], options: [])"
false
Are you sure you're forming the selector correctly? The selector seems to be
canReadObjectForClasses:options:.
Laurent
I concur.
The problem is that you call:
NSNotificationCenter.defaultCenter.addObserver(self, selector: :track_finished,
name:QTMovieDidEndNotification, object:nil)
That means you tell the notification center to call "track_finished", not
"track_finished:" :-)
--
Thibault Martin-Lagardette
Hi,
Looking at the CGWindowLevel.h header of the CoreGraphics framework:
enum {
kCGBaseWindowLevelKey = 0,
...
kCGDesktopIconWindowLevelKey,
...
#define kCGDesktopIconWindowLevel \
CGWindowLevelForKey(kCGDesktopIconWindowLevelKey)
$ ./miniruby -e "fra
#665: Easy to reproduce bug
-+--
Reporter: r...@…|Owner: lsansone...@…
Type: defect | Status: closed
Priority: blocker |Milestone: MacRuby 0.6
#665: Easy to reproduce bug
-+--
Reporter: r...@…| Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Hey,
Yeah sorry I forgot - ticket is here:
https://www.macruby.org/trac/ticket/665
Thanks,
Rob
On 24 Apr 2010, at 19:16, Matt Aimonetti wrote:
> Can you open a trac ticket please?
>
> Here is what I get:
>
> $ macirb
> irb(main):001:0> framework 'CoreFoundation'
> => true
> irb(main):002:0> fr
#665: Easy to reproduce bug
-+--
Reporter: r...@…| Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Can you open a trac ticket please?
Here is what I get:
$ macirb
irb(main):001:0> framework 'CoreFoundation'
=> true
irb(main):002:0> framework 'AppKit'
=> true
irb(main):003:0>
But:
$ macirb
irb(main):001:0> framework 'CoreFoundation'
=> true
irb(main):002:0> framework 'AppKit'
=> true
irb(mai
Hey,
I've been using a MacRuby nightly from a few days ago, and this bug is
reproducible on that and
macruby-latest.pkg(I fetched it a few minutes ago):
To reproduce:
framework('corefoundation')
framework('appkit')
Thanks,
Rob
___
MacRuby-devel maili
Hey,
I'm fooling around with NSPasteboard - following the documentation found at:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/PasteboardGuide106/Articles/pbGettingStarted.html#//apple_ref/doc/uid/TP40008150-SW1
I've got an instance of NSPasteboard through:
"board = NSP
Hi,
I didn't find out how to use the kCGDesktopWindowLevel directly, but you can
use the kCGDesktopWindowLevelKey constant if you use a capital K at the
beginning.
So the call:
window.setLevel(CGWindowLevelForKey(KCGDesktopWindowLevelKey))
works.
I looked at the CoreGraphics.bridgesupport in
Hi,
In ObjC, a method 'foo' that has one argument is referenced as 'foo:'
in such situations (with colon), not 'foo'. Try passing a string
"track_finished_with_notifier:" to the notification center.
Jakub Suder
___
MacRuby-devel mailing list
MacRuby-dev
I've not been able to generate a Bridge Support file for the AppKit.framework
on my machine, but if you can then you can load the framework and then load the
bridge support file and you should get access to those constants, I believe the
k changes to K though.
The alternative would be to define
Hi peoples,
I'm not sure if I'm doing something wrong here, or if it's a bug. I'm trying
to get a notification when a quicktime track finishes playing. The
documentation for NSNotificationCenter says:
notificationSelector
Selector that specifies the message the receiver sends notificationObse
Hey,
In Ruby, constants are identified by a capital letter at the beginning of its
name, and that is why a NameError exception is raised.
If this Objective-C constant is available to you, I don't think it would be
available as a local variable in MacRuby.
Maybe MacRuby encapsulates this data i
Hello everybody,
i'm new to MacRuby and currently trying my first Project.
I try to draw a NSPanel at the desktop window level.
Therefore, i would use the [window setLevel:kCGDesktopIconWindowLevel] method
in Objective-C.
In MacRuby the call window.setLevel(kCGDesktopIconWindowLevel) doesn't wor
21 matches
Mail list logo