Hello again, Macruby community!
I'm trying to rewrite a program that drives Excel with appscript, and running
into the problem of translating back and forth between HFS and POSIX pathnames.
The old Appscript module included a MacTypes module, and these two
translations were provided.
1. to go
Hi Bob,
If at all possible I'd try and avoid the conversion. If this is not feasible,
this could help:
def posix_from_hfs(hfs)
url = CFURLCreateWithFileSystemPath(nil, hfs, KCFURLHFSPathStyle, false) #
final argument is whether the path is a directory or not
url.path
end
def hfs_from_po
Help,
I have a recurring problem with corrupted class files created by Xcode 3.2.4
and I don't know much about class files.
I start having this problem whenever my application become large and I try to
change the inheritance of some MacRuby files. Occasionally, the change will
cause Interface
Hi Watson,
I tried the 4/18 nightly build and it still fails, although it seems to have
gotten further. Now the last line in the files window is:
./usr/local/share/man/man1/macrubyd.1
Thanks,
Bob Rice
On Apr 17, 2012, at 11:18 AM, Watson wrote:
> I fixed the MacRuby sample.
>
> Please try w
Hi Watson,
Thanks for you help. I guess that if Xcode 3 won't still work for me then it's
time for me to upgrade to Xcode 4. After installing the latest Xcode 4 the
latest MacRuby nightly install ran without a problem.
Now I will have to learn Xcode 4. It seems that Xcode 4 is showing me which
Hey, first post to the list, woot!
I've run into a little bit of a snag. Is there an elegant way of
building an initializer similar to this one in macruby? (assuming I'm
subclassing an NSView object)
- (id)initWithFrame:(NSRect)frame controller:(AppController *)ctrlr
{
if (self = [super init
It's hard to know what exactly is going on here without seeing more of your
project. Some things you can try though is to look through the build settings
for your project for the string bundle1.o. It's not clear to me though why you
would want to be linking a .o file?
On Monday, April 16, 2012
Have you tried "Clean All"? (I forget the exact wording in the Xcode 3 menu…but
it's there with "Clean")
On Wednesday, April 18, 2012 at 1:37 PM, Robert Rice wrote:
> Help,
>
> I have a recurring problem with corrupted class files created by Xcode 3.2.4
> and I don't know much about class fil
Welcome! Hope you enjoy your stay!
You can write Obj-C-ish methods in MacRuby the same way you call them: using
Ruby's hash syntax. The only other caveat is the difference between "super" in
Ruby and Obj-C. In Obj-C, "super" is the superclass. In Ruby, it is shorthand
for calling the same metho