xcode Version 4.5.2 (4G2008a)
i am new to applescriptobjc but ok in applescript
on doing some tests cant work my head round this
in xcode this doesn’t work
set myPoint to current application’s NSMakePoint(10.0, 20.0)
but in applescriptobjc explorer 2 - it does !
in xcode I added
#import <Foundation/Foundation.h> to main.m
xcode gives me an error
(lldb)
libobjc.A.dylib`objc_msgSend:
0x7fff93b44e90: movq 16(%r11), %r10
anyone know if I’m doing something wrong or its a bug
thanks in advance
I’m not sure why you say it doesn’t work – it works OK here. But it won’t work in OS X 10.6, so it’s not a good thing to use if that matters to you.
Moreover, it’s really unnecessary. Where you require an NSPoint, just use {x:10, y:20} or even {10, 20} instead.
I should point out that when I say it “works”, what it actually produces is a record of the form {x:10, y:20}. AppleScriptObjC can’t directly deal in NSPoints because they aren’t Objective-C objects, but rather C structs.
thanks shane for your reply
my os is 10.7.5 sorry i should of stated on my post
my mac is macbook air mid 2012
I tried deleting xcode and installing it again , but it don’t work
Because i am try to find my way round applescriptobjc it doesn’t
help when Xcode does not give the result even if i send method
correctly.
makes me wonder if other methods don’t work for me as
they do for others, but i have still got a lot of reading and testing
before i can comment more.
i am downloading 10.8 just because its bugging me why
thanks for your help
ps i purchased your book, (AppleScriptObjC Explored 4th)
very good, and well recommended by me to others
updating to 10.8 solved this problem
thanks