Search found 973 matches

by LCMark
Fri Jun 15, 2018 8:05 am
Forum: LiveCode Builder
Topic: [Solved] Help wrapping `[NSRunningApplication runningApplicationWithProcessIdentifier: pid]
Replies: 4
Views: 222

Re: Help wrapping `[NSRunningApplication runningApplicationWithProcessIdentifier: pid]

@trevordevore: I think the problem might be that you have 'returns Boolean' on the foreign binding - rather than 'returns CBool'.
by LCMark
Thu Jun 14, 2018 6:40 pm
Forum: LiveCode Builder
Topic: [Solved] Crash when trying to access [NSCursor hotpot] and [NSImage size]
Replies: 3
Views: 97

Re: Crash when trying to access [NSCursor hotpot] and [NSImage size]

Or maybe N - seems you've already changed that... CGImageRef is just a pointer type - not an aggregate (it's typedefd as struct*).
by LCMark
Thu Jun 14, 2018 6:38 pm
Forum: LiveCode Builder
Topic: [Solved] Crash when trying to access [NSCursor hotpot] and [NSImage size]
Replies: 3
Views: 97

Re: Crash when trying to access [NSCursor hotpot] and [NSImage size]

@trevordevore: The fields in NSSize and NSPoint are 'platform floats' - I think the code is q? There are float on 32-bit systems and double on 64-bit.
by LCMark
Thu May 17, 2018 3:49 pm
Forum: LiveCode Builder
Topic: Returning pointers to LCS
Replies: 2
Views: 256

Re: Returning pointers to LCS

@trevordevore: Yes - HWND is better typed as UIntPtr - it isn't really a pointer, but a handle which is checked by the OS in all API calls (so you can't break things by adding 1 to an existing one and passing that back - you'll just get an API error).
by LCMark
Fri May 11, 2018 5:17 pm
Forum: LiveCode Builder
Topic: CGWindowListCopyWindowInfo, CFArrayRef, NSArray, and __bridge
Replies: 6
Views: 350

Re: CGWindowListCopyWindowInfo, CFArrayRef, NSArray, and __bridge

@trevordevore: The CF types and the corresponding NS types are all compatible at the pointer level - the only thing which differs is that the CF APIs never returned autoreleased objects - so in this case it would return an ObjcRetainedId. Once put into an ObjcObject you can use it like you would the...
by LCMark
Fri May 11, 2018 8:31 am
Forum: LiveCode Builder
Topic: Help with macOS system status bar menu
Replies: 9
Views: 495

Re: Help with macOS system status bar menu

@trevordevore: Your code looks good. The general rules with regard ObjcIds etc. are: Only use ObjcId and ObjcRetainedId in the foreign handler definitions (parameter types and return types) - they describe the ownernship semantics of values flowing in and out of objc methods. Always use ObjcObject a...
by LCMark
Tue Apr 03, 2018 6:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 403

Re: A quick lesson in Sanskrit orthography

Hehe - you do like to make things difficult, don't you @richmond62 ;) With those constraints, and I'm guessing you aren't wanting to cobble together your own typesetting stack (and integrate it into the engine) - I suggest the two different fonts, and changing the textFont might be the 'best' soluti...
by LCMark
Tue Apr 03, 2018 6:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 403

Re: A quick lesson in Sanskrit orthography

One thing to consider is that variation selectors are *really* new in Unicode relatively speaking - so you need to be on a recent version of any OS for them to work. I tried you code here (macOS 10.12) and I get just the Mongolian glyph - no VS-1 selector overlaid... Which suggests this version of m...
by LCMark
Tue Apr 03, 2018 6:14 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 403

Re: A quick lesson in Sanskrit orthography

@richmond62: If I understand correctly then variation selectors are no different from any other unicode codepoint - so if you want to encode more than one in a sequence, then you have to do so with separate numToCodepoint's... i.e.

Code: Select all

put numToCodepoint(0x905) & numToCodepoint(0xFE00) into field "ff"
by LCMark
Tue Apr 03, 2018 5:31 pm
Forum: Talking LiveCode
Topic: Compare two lists (comparing fontName before/after)
Replies: 44
Views: 1432

Re: Compare two lists (comparing fontName before/after)

Just to comment on revFontLoad and the font-related aspects of this thread... revFontLoad is deprecated, old, and no longer exists (I think its removed from 9 - having been deprecated for a long time). Start using font file does exactly the same thing but better - in particular, it causes all font r...
by LCMark
Tue Apr 03, 2018 4:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 403

Re: A quick lesson in Sanskrit orthography

@richmond62: 'start using font file' is a better version of 'revFontLoad' - it just allows you to load an truetype/opentype font into the current process so you can use it as 'textFont'. If you were meaning in terms of multiple master fonts - then they always required a user managed step by using a ...
by LCMark
Tue Apr 03, 2018 4:15 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: A quick lesson in Sanskrit orthography
Replies: 12
Views: 403

Re: A quick lesson in Sanskrit orthography

Unfortunately I think 'multiple master fonts' are a dead-end - e.g. https://forums.adobe.com/thread/395592 . There is a modern variant just starting to appear https://www.commarts.com/columns/variable-fonts-are-the-next-generation . However, my reading of both multiple master and the new variable fo...
by LCMark
Thu Jan 25, 2018 12:44 pm
Forum: Rich Media
Topic: drawingSVGcompile Wish List
Replies: 23
Views: 1933

Re: drawingSVGcompile Wish List

@terilib / @bwmilby : Those maps don't work because they use a 'style' element along with element class attribtues to specify the fills/stroke attributes. There's a request for style element support here: http://quality.livecode.com/show_bug.cgi?id=20832.
by LCMark
Wed Jan 17, 2018 4:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: IT variable becomes Local
Replies: 2
Views: 232

Re: IT variable becomes Local

@Lagi: The 'it' variable is actually always local to the handler. Prior to 7 (e.g. 6.7.11) the 'it' variable would only be created at the point a command was parsed which required it - therefore if you tried to use 'it' *before* such a command, you'd get that error (assuming Variable Checking is on)...
by LCMark
Wed Jan 17, 2018 12:05 pm
Forum: LiveCode Builder
Topic: How to get started with ... everything?
Replies: 19
Views: 1850

Re: How to get started with ... everything?

@SparkOut: I perhaps should have added some comments to the above :) In terms of the folder structure, then the extension builder requires each extension have its own folder (velleman) in this instance. Then (in dp-11) it requires that a *single* LCB file be present in that folder (velleman.lcb) [ i...

Go to advanced search