Shane, while I still appreciate your help, and I know you're determined to get me to learn how to research, for me your answer was 'yet again with the obtuseness'.
I looked up NSRect, and when I saw…
Determining Layout Rectangles
my eyes glazed over. So I tried... NSRectRepresents a rectangle. typedef struct _NSRect {
NSPoint origin;
NSSize size;
} NSRect;
Fieldsorigin The origin of the rectangle (its starting x coordinate and y coordinate). size The width and height of the rectangle, as measured from the origin.
But if I knew how to actually apply this to my code, I wouldn't be asking for help in the first place.
I've tried (amongst several things), this…
tell current application's NSPoint to set currentScrollPosition to theNewColorsView's contentView's NSRect_(origin, |bounds|)
<code>
theNewColorsView's documentView's scrollPoint_(currentScrollPosition)
and I get the same error, 'the variable currentScrollPosition is undefined'.
To say I'm &%@$* frustrated is putting it mildly. How on earth is someone supposed to interpret how to actually use 'When you see " bounds].origin", it means the origin of the bounds, and bounds in this case is an NSRect.' unless they already know what the hell they're doing, in which case they wouldn't be asking for help. Finding useful information on the net re. interpreting ObjC to ASObjC, and also here, is like trying to get blood out of a stone.
Thanks anyway.
Brian Christmas
On 03/10/2014, at 9:18 AM, Shane Stanley < email@hidden> wrote: When you see " bounds].origin", it means the origin of the bounds, and bounds in this case is an NSRect.
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|