Problem with NSWorkspace.shared and uid 0

2017-12-12 Thread sqwarqDev
When using the absolutePathForApplication(withBundleIdentifier:) api, I find that if the path is on an external mount, the api will return nil / none if the uid is 0, when it will return an actual path when the uid is a valid user login id (eg, 501, 502 etc). To reproduce, mount a .dmg contain

Re: Stopping on a system call and determining open files?

2017-12-01 Thread sqwarqDev
> -- > Rick Mann > rm...@latencyzero.com > > > > > > -- > Rick Mann > rm...@latencyzero.com > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin reque

Re: unable to update UI on main thread in 10.13

2017-10-28 Thread sqwarqDev
> > Better still, don’t store the attributed string persistently anywhere, but > pass it through the background processing then on to the main thread as a > parameter to the updateUI function. Thanks for that suggestion; it wasn’t the answer, but it did lead me to rewrite significant portions

Re: unable to update UI on main thread in 10.13

2017-10-27 Thread sqwarqDev
Yeah, I should probably have explained the structure. After years of objective-c this is my first time with both swift and storyboards, so…that may well be where the problem lies. Anyway, it goes like this, the ViewController instantiates an instance of my subclassed NSTextView. The subclasse

Re: unable to update UI on main thread in 10.13

2017-10-27 Thread sqwarqDev
gets sent it in the last line of the updateUI func. What made you think that it comes from the textview? >> On Oct 27, 2017, at 7:03 AM, sqwarqDev wrote: >> >> I have a subclass of NSTextView which I'm trying to update in my UI. When >> the user clicks a but

unable to update UI on main thread in 10.13

2017-10-27 Thread sqwarqDev
I have a subclass of NSTextView which I'm trying to update in my UI. When the user clicks a button in the main UI, I run a bunch of processes in the background, save their output to an attributed string, then update the textview's textstorage on the main thread using performSelector(onMainThread

Re: High Sierra

2017-09-26 Thread sqwarqDev
Fair enough. I’d seen (and had) the issue with an existing installer during the beta updates and figured it was the same. Glad you got it sorted! Best Phil @sqwarq > On 26 Sep 2017, at 20:25, Richard Charles wrote: > > >> On Sep 26, 2017, at 7:00 AM, sqwarqDev wrote: &g

Re: High Sierra

2017-09-26 Thread sqwarqDev
ption: > https://lists.apple.com/mailman/options/cocoa-dev/sqwarqdev%40icloud.com > > This email sent to sqwarq...@icloud.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Repository of older (outdated) PDF Guides?

2017-05-19 Thread sqwarqDev
subscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/cocoa-dev/apple%40kevin.com >> >> This email sent to ap...@kevin.com > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not po

Re: programmatically tell when spotlight/mds is indexing

2017-03-18 Thread sqwarqDev
> On 18 Mar 2017, at 23:05, Jerome Krinock wrote: > > To generalize your question, you want to reverse-engineer some other app to > reveal some status information. I’ve had to do this a couple times. Thanks for the thought, but my question was really just a sanity check to make sure that ther

programmatically tell when spotlight/mds is indexing

2017-03-17 Thread sqwarqDev
I have an app that uses MSMetadataQuery. As expected, this returns very fast results. However, there is an edge case when Spotlight chooses to re-index the whole disk (indicated in Spotlight's GUI by the blue progress bar underneath during a search). When this happens my app’s search is severel

Re: Some help with NSComparisonPredicate please

2017-02-17 Thread sqwarqDev
> On 17 Feb 2017, at 22:35, sqwarqDev wrote: > > mdfind on the command line returns all the results from the /Application > Support folder. NSMetadataQuery doesn’t return anything at all. Search scope is set to NSMetadataQueryLocalComputerScope in case anyone was going to as

Re: Some help with NSComparisonPredicate please

2017-02-17 Thread sqwarqDev
> On 17 Feb 2017, at 22:25, Keary Suska wrote: > > The correct syntax is probably: > > kMDItemFSName ==[c] *%@* > Yeah, I’ve just been playing with that since my last post. Indeed, I discovered that the docs claim that this should be equivalent to contains: kMDItem…. == “*paris

Re: Some help with NSComparisonPredicate please

2017-02-17 Thread sqwarqDev
r: “Unknown type of NSComparisonPredicate given to NSMetadataQuery”. LIKE works, but as I said doesn’t give me the right results. MATCHES fails, as does CONTAINS. I’m beginning to think this is a bug in NSMetadataQuery. Best P > On 17 Feb 2017, at 18:16, sqwarqDev wrote: > > Suggestions fr

Re: Some help with NSComparisonPredicate please

2017-02-17 Thread sqwarqDev
Suggestions from Shane and Steve: > Use LIKE instead of CONTAINS? Yeah, that was my first thought. Alas, it doesn’t return the correct results. > Try quoting the right side? "kMDItemFSName contains[cd] '%@‘" Doesn’t return the correct results in 10.11. There aren’t any spaces in my actual ta

Re: Some help with NSComparisonPredicate please

2017-02-16 Thread sqwarqDev
Still looking for help with this, if anyone’s got any idea? > On 15 Feb 2017, at 22:50, sqwarqDev wrote: > > Building with Xcode 7.3.1, macOS 10.11.6 > > I’m using an NSPredicate with the form: > > NSString *targetString = @“some string or other”; > NSPredicate *search

Some help with NSComparisonPredicate please

2017-02-15 Thread sqwarqDev
Building with Xcode 7.3.1, macOS 10.11.6 I’m using an NSPredicate with the form: NSString *targetString = @“some string or other”; NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"kMDItemFSName contains[cd] %@“, targetString]]; When I build and run my app, this runs fine on 10

Re: How to show a file in Finder

2016-10-31 Thread sqwarqDev
the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/sqwarqdev%40icloud.com > > This email sent to sqwarq...@icloud.com ___ Cocoa-dev mailin

Re: [SOLVED} QLPreviewPanel (how to supply default application url?)

2016-05-30 Thread sqwarqDev
Got it. Should have been using fileURLWithPath. Thanks to dangerWill…I hadn’t posted the code I wouldn’t have spotted that!! > On 30 May 2016, at 18:08, sqwarqDev wrote: > > >> On 30 May 2016, at 17:42, dangerwillrobinsondan...@gmail.com wrote: >> >&g

Re: QLPreviewPanel (how to supply default application url?)

2016-05-30 Thread sqwarqDev
[0]; NSURL *previewPath = [[NSURL URLWithString:pathString] absoluteURL]; return previewPath; //returns ‘Users/phil/Documents/sample.txt' } Best Phil > Sent from my iPhone > >> On May 30, 2016, at 7:20 PM, sqwarqDev > <mailto:sqwarq...@icloud.com>> wrote

QLPreviewPanel (how to supply default application url?)

2016-05-30 Thread sqwarqDev
Hoping someone can get me over the final hurdle… I have an NSTableView and I want the user to be able to hit the space bar to invoke a QuickLook preview of the selected item. These items are not custom objects, just regular text files. I’m following the sample code provided by Apple in QuickLoo

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
> On 4 May 2016, at 10:48, Charles Srstka wrote: > > In the earlier downloadable OS X installers, the InstallESD was bootable; in > the current ones it’s not. I don’t remember when that changed, 10.7 I believe. > Aha, ArsTechnica to the rescue. Also, don’t quote me on it, but I believe tha

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
Aha, ArsTechnica to the rescue. Here’s the full skinny on how it’s done: http://arstechnica.com/apple/2012/07/how-to-create-a-bootable-backup-mountain-lion-install-disk/ Best Phil > On 4 May 2016, at 10:38, sqwarqDev wrote: > > >> On 4 May 2016, at 10:34, sqwarqDev

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
> On 4 May 2016, at 10:34, sqwarqDev wrote: > > I don’t know exactly what that does or if its the same function From the new DU’s help, step 1 refers to the destination, step 2 the InstallESD: Select the volume in the sidebar you want to restore, then select Edit > Restore.

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
> On 4 May 2016, at 10:28, Graham Cox wrote: > > This seems to be the bulk of the installer. I take it that’s the *REAL* > install image. Can I install directly from that, and if so, how? Yes you can. The old way was mount the InstallESD image in the Finder and then use Disk Utility’s ‘Resto

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
> On 4 May 2016, at 10:08, Carl Hoefs wrote: > > I don't know why, but you'll find that none of your previously purchased > items will be grayed out there. What’s installed isn’t a historical record attached to your account. As indicated in my earlier post, it’s actually a live search of the

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
> On 4 May 2016, at 09:18, Graham Cox wrote: > > I could not download 10.9 as the button was greyed out with “downloaded” on > it. Yeah, about that. Whenever you download from the App Store, save a copy of the installer BEFORE you run it. Copy it off onto some removable media device. If y

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread sqwarqDev
> On 4 May 2016, at 09:18, Graham Cox wrote: > > but at that point it gave an error that the installer could not be verified > and ‘may’ be corrupt. Yeah, I’ve been through this. I now have disks with every OS from 10.6 through to 10.11 and a couple of old MBPs to run them on. Treat them like

Re: How to make an app launch on login?

2016-04-20 Thread sqwarqDev
| On Apr 20, 2016, at 05:00 PM, sqwarqDev wrote: | If your app is sandboxed you'll need to call it via NSUserAppleScriptTask Correction: NSUserScriptTask https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSUserScriptTask_Class/index.html#//apple_ref/o

Re: How to make an app launch on login?

2016-04-20 Thread sqwarqDev
lrobinsondan...@gmail.com wrote: I believe the correct answer is LaunchAgent plist, XPC helper LaunchAgent or instruct users to manually add it in system preferences or provide a script they can manually run once. Sent from my iPhone On Apr 20, 2016, at 6:01 PM, sqwarqDev wrote: If you’re

Re: How to make an app launch on login?

2016-04-20 Thread sqwarqDev
If you’re willing (or able: beware sandboxing issues) to call either osascript or NSAppleScript, you can do this via a bit of AppleScript magic: tell application "Finder" to set aPath to POSIX path of (application file id ”com.yourBundleID.yourApp" as string) tell application "System Events” 

Re: stop NSSearchField editing selected row in NSOutlineView

2016-03-20 Thread sqwarqDev
Sorry, iCloud UI-wreck stripped the formatting for some reason.  On Mar 20, 2016, at 08:23 PM, sqwarqDev wrote: On Mar 20, 2016, at 05:13 PM, Ken Thomases wrote:rently selected row in the table. How are you making the outline view "select" the first match? By clicking on

Re: stop NSSearchField editing selected row in NSOutlineView

2016-03-20 Thread sqwarqDev
On Mar 20, 2016, at 05:13 PM, Ken Thomases wrote:rently selected row in the table. How are you making the outline view "select" the first match? By clicking on it before clicking in the NSTextField/SearchField. Show your code. Well, as I said in my OP, I get the problem with an empty stub. N

stop NSSearchField editing selected row in NSOutlineView

2016-03-20 Thread sqwarqDev
I have an OutlineView inside a SplitView in an NSPanel. I've been trying to implement an NSSearchField for the OutlineView. The behaviour I want is simply for the outline view to select the first hit that matches the search term. I've had no problems getting the actual search to work just fine

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-03-15 Thread sqwarqDev
Silly me, forgot to add error checking. Adjusted script: set plistContents to "" set x to (path to startup disk) as text set pathToAppFolder to x & "Applications:" as alias set infoFilePath to "Contents:info.plist" set theApp to "" set sparkleAppsList to {} set theAppList to do shell script "find

Re: Apple Bug no response

2016-03-09 Thread sqwarqDev
> You might get an automated email when a future build is available asking you > to re-test. You may get a note that your bug is a duplicate. You may never > get a response at all. Or… …yesterday I got feedback asking if a bug I reported in an early *Yosemite* seed was resolved in the latest

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-12 Thread sqwarqDev
What I “think” (...read: “hope", cos I really need to be getting on with other stuff, like updating the Sparkle version in my own apps…) is my final version of the script to check for vulnerable Sparkle frameworks and prefPanes (system wide, including backups if connected): Script version 1.6:

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-11 Thread sqwarqDev
Thanks largely to folks over on the AppleScript users list, the rough script I was providing yesterday has been significantly improved. Here’s the latest version. Credits go to Al Varnell and Yvan Koenig for suggestions and rewriting of my earlier drafts. Added: apps in /Applications subfold

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread sqwarqDev
I've removed some duplications in the code, but functionally identical to the last version. Again, I'll point out that this is only going to show you apps in /Applications, and it's not going to find those that hide the appcast url in the binary (DriveDx, for one, but there are others). Bear i

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread sqwarqDev
On 10 Feb 2016, at 22:55, Peter Teeson wrote: find /Applications -path '*Autoupdate.app/Contents/Info.plist' -exec echo {} \; -exec grep -A1 CFBundleShortVersionString '{}' \; | grep -v CFBundleShortVersionString That produces a list of apps that are on earlier versions of Sparkle than 1.13.

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread sqwarqDev
OK, I've started adding version numbers to this script now to avoid confusion. :~! Latest 'update' is v1.3 (fixed: the 'choose folder' option now works correctly): I don't think this is the last version...there's at least one outstanding problem one person's having that I'm waiting to here mor

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread sqwarqDev
On Feb 10, 2016, at 07:39, diede...@tenhorses.com wrote: You can do that in the terminal, I found this terminal command online: find /Applications -name Sparkle.framework | awk -F'/' '{print $3}' | awk -F'.' '{print $1}' Sorry, some posting problems. Here’s the latest version of the scrip

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread sqwarqDev
On Feb 10, 2016, at 07:39, diede...@tenhorses.com wrote: You can do that in the terminal, I found this terminal command online: find /Applications -name Sparkle.framework | awk -F'/' '{print $3}' | awk -F'.' '{print $1}' Here’s an AppleScript that will output the insecure http apps from your

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread sqwarqDev
On 10 Feb 2016, at 13:59, diede...@tenhorses.com wrote: tell them how they can find out which apps use Sparkle?? On 10 Feb 2016, at 13:59, diede...@tenhorses.com wrote: tell them how they can find out which apps use Sparkle?? I was thinking of writing a script for this, checking for SUFeedURL

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-09 Thread sqwarqDev
> On 10 Feb 2016, at 09:08, Charles Srstka wrote: > > If your app is accessing your appcast via HTTP, that could be intercepted > just the same as your relnotes, and then the attacker could set the relnotes > URL to whatever s/he wants. Can I just double-check my understanding here: 1. If t

Re: Trying to understand a permissions failure when writing to ~/Desktop

2016-01-27 Thread sqwarqDev
main:NSUserDomainMask appropriateForURL:nil create:YES error:&myErr]; NSURL *fileURL = [desktopURL URLByAppendingPathComponent:@"somefile.txt"]; NSString *hw = @"hello world"; [hw writeToURL:fileURL atomically:YES encoding:NSUTF8StringEncoding

Re: OT: Swift Code Autoformatter?

2016-01-15 Thread sqwarqDev
> On 15 Jan 2016, at 17:38, sqwarqDev wrote: > > tell application "Xcode" > tell source document 1 > set _sourceCode to contents > > -- do shell script //do all your formatting here BTW, please don’t put a

Re: OT: Swift Code Autoformatter?

2016-01-15 Thread sqwarqDev
tell Best Phil @sqwarqdev ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: output string like a teleprinter (NSTextView)

2015-12-18 Thread sqwarqDev
> On 18 Dec 2015, at 06:34, Graham Cox wrote: > > If it happened accidentally it was most likely due to setting up a situation > that caused extreme low performance No, it wasn’t. > You could just gradually add characters from the original string to a > ‘display’ string using a timer and

output string like a teleprinter (NSTextView)

2015-12-17 Thread sqwarqDev
A couple of years ago I was messing around with NSTextView and NSTextStorage and accidentally ended up with a method that printed my string (could have been attributed string) to my textview one character at a time, rather like an old fashioned teleprinter. At the time, that wasn’t the effect

Re: Identifying a specific Mac model

2015-09-14 Thread sqwarqDev
On 14 Sep 2015, at 01:09, John Daniel wrote: > > MacBook8,1 covers all colours of the new MacBook. > I am trying to differentiate the silver, from the space grey, from the gold. Since the machines are physically identical save the paint job, I don’t think anything like sysctl or any other har

Re: Identifying a specific Mac model

2015-09-14 Thread sqwarqDev
gt; Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/cocoa-dev/xhruso00%40gmail.com >> >> This email sent to xhrus...@gmail.com >> > __

Re: Accessibility API: get list of allowed apps

2015-09-13 Thread sqwarqDev
On 13 Sep 2015, at 17:58, sqwarqDev wrote: Thanks for the reply, Bill. > On 13 Sep 2015, at 17:51, Bill Cheeseman wrote: > I believe you would have to use GUI Scripting I’m know my way around AppleScript, but that’s not an option. It has to be done without opening the System Prefe

Accessibility API: get list of allowed apps

2015-09-13 Thread sqwarqDev
Is there a way to get a list of the apps currently allowed access to the Accessibility API (I’m talking about the apps listed in the System Preferences > Security & Privacy > Privacy > Accessibility pane and which are allowed to GUI script the computer)? I’ve found two “hackarounds”, neither of

Re: API to determine status of System Integrity Protection?

2015-09-12 Thread sqwarqDev
> On 13 Sep 2015, at 00:43, SevenBits wrote: > > That document doesn't mention an API… > Hence, since that is the current documentation, my conclusion : “Don’t think so”. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: API to determine status of System Integrity Protection?

2015-09-12 Thread sqwarqDev
> On 9 Sep 2015, at 02:06, James Bucanek wrote: > > I'll assume by the raging silence that there is no such API. Don’t think so. The current documentation is here: https://developer.apple.com/library/prerelease/ios/documentation/Security/Conceptual/System_Integrity_Protection_Guide/System_Integ

Re: removeItemAtPath in 10.7

2015-08-27 Thread sqwarqDev
n 26 Aug 2015, at 23:45, Conrad Shultz wrote: > > >> On Aug 26, 2015, at 8:11 AM, sqwarqDev wrote: >> In Cocoa, the value of the error out parameter is not guaranteed in the >> success case. You should test the return value of -removeItemAtPath:error: >> (

removeItemAtPath in 10.7

2015-08-26 Thread sqwarqDev
I built my app in Xcode 6.4 on 10.10.5. Runs without issue on Yosemite and Mavericks. However, when I boot into Lion 10.7, I get an “unrecognized selector” error on the “removeItemAtPath” line. Here’s the snippet" NSError *err; int i; for (i=0; i < offendersList.count; i++) {

Re: navigating NSPopUpButton menu items with arrow keys

2015-08-23 Thread sqwarqDev
> On 24 Aug 2015, at 06:42, Ken Thomases wrote: > > For what it's worth, another standard behavior is Option-up Ah, the secrets of the option key. 12 years a mac user and they just keep on giving. Thanks! ___ Cocoa-dev mailing list (Cocoa-dev@l

navigating NSPopUpButton menu items with arrow keys

2015-08-23 Thread sqwarqDev
I have an NSPopupButton in my app with half a dozen or more menu item choices. When a user clicks on the button, they can navigate up and down the menu items by using the up and down arrow keys. When the user navigates to the last item in the list, further presses on the down arrow key do noth

Re: Another Xcode update, another failure to build.

2015-08-13 Thread sqwarqDev
> On 13 Aug 2015, at 11:37, Graham Cox wrote: > But the linker fails to find the framework: > > ld: warning: directory not found for option > '-F"/Users/grahamcox/Projects/Mapdiva > Projects/Artboard/../../Library/Developer/Xcode/DerivedData/Drawkit-gzweppsofrkdiyasaleyeleblyor/Build/Products

Re: recycleURLs with authorization

2015-06-17 Thread sqwarqDev
rmission from the user. I can achieve this simply enough with applescript, but I was hoping there was a Cocoa solution. Best Phil > On 18 Jun 2015, at 09:13, Sean McBride wrote: > > On Thu, 18 Jun 2015 08:16:48 +0700, sqwarqDev said: > >> Hi list >> >> I'

recycleURLs with authorization

2015-06-17 Thread sqwarqDev
Hi list I'm trying to move some files to the trash with my app, but I need OS X to throw an authentication dialog when the requested file needs permission to be moved. I need a solution that will work from 10.6 onwards, so I've been looking at NSWorkspace's recycleURLs rather than NSFileManag

Re: orderFront: 10.10 vs 10.9

2015-05-08 Thread sqwarqDev
> > On 10.9 I am seeing > > "unlockFocus called too many times. Can't help with the "why", but try putting [button lockFocus]; in that method. Even when there isn't an explicit unlockFocus call, I've had this error message a couple of times and adding an explicit lockFocus cured it. B

Re: scale text proportionally as bounds increase

2015-02-28 Thread sqwarqDev
> On 24 Feb 2015, at 05:08, Jens Alfke wrote: > >> On Feb 23, 2015, at 8:49 AM, sqwarqDev <2551p...@gmail.com> wrote: >> >> How do I programmatically tell each NSControl to increase its text size >> proportionally as its bounds increase? > >

Re: What's up with the Cocoa Text System?

2015-01-23 Thread sqwarqDev
> On 23 Jan 2015, at 20:50, Charles Jenkins wrote: > > I have turned off Autocorrect and Check Spelling While Typing to eliminate > the significant pause that happens each time you finish a word and hit the > space bar. That's a local issue you've got there. 1. Create a new user. Restart and

licence key validation method

2015-01-10 Thread sqwarqDev
Can anyone point me in the right direction for the (simplest) solution to validate a DSA key in my OS X app? I've looked at both CocoaFob and AquaticPrime; both contain deprecations and look as if they are more or less dead. In neither case have I been able to get my head around the incomplete

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> > On 17 Dec 2014, at 12:24, Brian Christmas wrote: > > For stopping a vanilla applescript from running, press Command-. ( that’s > Command - full stop) Hi Bria To my surprise, it turns out that that's a system wide keychord that my own editor app can also utilise, and not just a shortcut r

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> > Is there any way to programmatically stop a script once it's running > > without using OSAScriptController's 'stopScript' IBAction? > > See OSASetActiveProc() in the Retired Documents library: > > https://developer.apple.com/legacy/library/documentation/Carbon/Reference/Open_Scripti_Architec

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> On 17 Dec 2014, at 19:07, Jonathan Mitchell wrote: > > Can you show us how you launch the script. > The script is just in a bog standard NSTextView, with a bit of tinkering to the text attributes, and then it's simply a call to OSAScript: NSString *source = [textView string]; NS

OSAScriptController's stopScript action

2014-12-16 Thread sqwarqDev
Once again, apologies for cross posting, but again this is partly an AppleScript question and partly a Cocoa question. To wit: Is there any way to programmatically stop a script once it's running without using OSAScriptController's 'stopScript' IBAction? My attempts to bend OSAScriptController

Re: building an AppleScript editor app

2014-12-07 Thread sqwarqDev
> IMO you're almost certainly wasting your time. I've been told this since I first mentioned it over a year and a half ago. I'm not a professional developer, it's a hobby. Wasting my time on this is no worse than watching re-runs of "Kung Fu" and sure beats suffering on the sofa watching Leeds

Re: building an AppleScript editor app

2014-12-07 Thread sqwarqDev
> On 7 Dec 2014, at 18:59, sqwarqDev <2551p...@gmail.com> wrote: >>> AEDescriptor is: >>> >> 'want':'cfol', 'seld':'utxt'("Fusion:Users:sphil:Desktop:"), ..., > >> What you've shown ab

Re: building an AppleScript editor app

2014-12-07 Thread sqwarqDev
Ken, many thanks for taking the time to respond. Yes, I'm very familiar with OSAKit framework, but only in the sense that the more I look at it the more infuriating it becomes... > What you've shown above is just the description string of the > NSAppleEventDescriptor. It's not its native cont

building an AppleScript editor app

2014-12-07 Thread sqwarqDev
Apologies for cross-posting, but I suspect there could be experts on both sides of the divide that may be able to help me. As the title suggests, I'm building an AppleScript editor (Objective-C, not Swift). I've got reasonably far replicating the abilities of the in-built Script editor and ha

help with debugging

2014-11-18 Thread sqwarqDev
Hi folks Pretty uneducated in anything other than the basics of debugging, so I have a bug in my app which I can't reproduce my end, but I get several user reports that all show the same console.log errors. The bug is near-fatal, i.e. doesn't crash the app, but stops it displaying a window cont

Re: updating NSTextField before spinner animates

2014-11-12 Thread sqwarqDev
> On 11 Nov 2014, at 23:01, Fritz Anderson wrote: > -needsDisplay schedules a view’s -drawRect: for the next pass through the > runloop. You’re putting your process to sleep at the OS level, so the runloop > is suspended along with everything else. > > What you posted is evidently a minimal ca

updating NSTextField before spinner animates

2014-11-11 Thread sqwarqDev
Using Xcode Version 6.1 (6A1052d) on the latest developer build of Yosemite. I'm confused as to whether this is a bug, or if I'm just doing something wrong. I have an NSTextView, whose string I want to update while I wait for another method to complete. Since this method is going to take aroun

Re: best way to implement unlock features in app

2014-11-06 Thread sqwarqDev
> On 6 Nov 2014, at 22:35, Allan Odgaard wrote: > I wrote this post about the general principles of a secure license key > scheme: > http://sigpipe.macromates.com/2004/09/05/using-openssl-for-license-keys/ Ahh nice. Thanks. That's the kind of nitty gritty I've been looking for and struggling

Re: best way to implement unlock features in app

2014-11-06 Thread sqwarqDev
> On 6 Nov 2014, at 21:31, Bill Cheeseman wrote: > > > One answer, which I prefer, is to contract with a commercial e-commerce > provider. Thanks, Bill. I had looked at Kagi in the past, but I didn't realise e-commerce providers would actually help with incorporating all the necessary the c

best way to implement unlock features in app

2014-11-06 Thread sqwarqDev
Apologies in advance. I'm sure this has been asked a million times before, but my google-fu has let me down, and that which I can find is all iOS related. No good for me as this concerns an OS X, non-App store app. I have a reasonably well-developed free OS X app (i.e., by well-developed I mean

Re: Swift video/PDF files within the WWDC 2014 video list

2014-08-04 Thread sqwarqDev
not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/sqwarqdev%40icloud.com > > This email sent to sqwarq...@icloud.com