• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Now I can't get this terminology right, dammit!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Now I can't get this terminology right, dammit!


  • Subject: Re: Now I can't get this terminology right, dammit!
  • From: Brian Christmas <email@hidden>
  • Date: Fri, 03 Oct 2014 10:07:47 +1000



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

  • – rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:
  • – boundsRectForBlock:contentRect:inRect:textContainer:characterRange:

my eyes glazed over. So I tried...

NSRect

Represents a rectangle.

typedef struct _NSRect {
      NSPoint origin;
      NSSize size;
} NSRect;
Fields
origin
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.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
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
  • Follow-Ups:
    • Re: Now I can't get this terminology right, dammit!
      • From: Shane Stanley <email@hidden>
References: 
 >Now I can't get this terminology right, dammit! (From: Brian Christmas <email@hidden>)
 >Re: Now I can't get this terminology right, dammit! (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Now I can't get this terminology right, dammit!
  • Next by Date: Re: Now I can't get this terminology right, dammit!
  • Previous by thread: Re: Now I can't get this terminology right, dammit!
  • Next by thread: Re: Now I can't get this terminology right, dammit!
  • Index(es):
    • Date
    • Thread