Re: Retrieve all available Finder tags on Monterey and later

2023-02-16 Thread Leo Revzin via Cocoa-dev
Solution found - credit goes to Thomas Tempelmann and James Walker: sqlite3 ~/Library/SyncedPreferences/com.apple.kvs/com.apple.KeyValueService-Production.sqlite "SELECT writefile('path/to//tags.plist', ZPLISTDATAVALUE) FROM ZSYDMANAGEDKEYVALUE WHERE ZKEY = 'FinderTagDict';" _

Retrieve all available Finder tags on Monterey and later

2023-01-09 Thread Leo Revzin via Cocoa-dev
ading Finder prefs or fileLabels of NSWorkspace) only return the 8 standard labels - but not any custom tags created by the user. Googling the subject didn't produce any results. Thanks for any info, Leo ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: 'altool' cannot be found

2019-06-16 Thread Leo via Cocoa-dev
Thanks Keary, You helped me solve the issue. altool was indeed in this folder: /Applications/Xcode.app/Contents/Developer/usr/bin/ However, xcode-select -p returned /Library/Developer/CommandLineTools I reset the path with xcode-select -r. Now everything seems to work. Thanks, Leo

'altool' cannot be found

2019-06-14 Thread Leo via Cocoa-dev
.5, Xcode 10.2.1. I then especially downloaded and installed Xcode Command Line Tools - still get same error. Other tools like stapler do work. I checked this dir and altool is not there: /Library/Developer/CommandLineTools/usr/bin Any idea what's going o

Re: How to get log from user

2019-06-14 Thread Leo via Cocoa-dev
___ 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 Subscription: https://lists.apple.c

Re: Notarization error: The signature algorithm used is too weak

2019-05-29 Thread Leo via Cocoa-dev
On 5/29/19 1:53 PM, Richard Charles wrote: On May 28, 2019, at 8:18 PM, Leo via Cocoa-dev wrote: Can you please elaborate on this... Perhaps this will help. https://stackoverflow.com/questions/25152451/are-mac-app-store-code-sign-resource-envelopes-always-version-1 Thanks Richard

Re: Is the list alive?

2019-05-29 Thread Leo via Cocoa-dev
On 5/29/19 9:02 AM, Steve Mills via Cocoa-dev wrote: On May 28, 2019, at 19:46:26, Leo via Cocoa-dev wrote: Hmm... my earlier message today never got through. Supposedly, these lists are to be done away with at some point. Someone started co...@apple-dev.groups.io, which many of us have

Re: Notarization error: The signature algorithm used is too weak

2019-05-29 Thread Leo via Cocoa-dev
On 5/28/19 9:26 PM, Richard Charles wrote: On May 28, 2019, at 3:43 PM, Leo via Cocoa-dev wrote: -I recently contacted Apple again and they pointed me to some resource page that was created back in 2016. It briefly mentions a similar error - but still without any info on how to solve it

Is the list alive?

2019-05-29 Thread Leo via Cocoa-dev
Hmm... my earlier message today never got through. ___ 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/Unsubsc

Notarization error: The signature algorithm used is too weak

2019-05-28 Thread Leo via Cocoa-dev
some time ago, I still have thousands of customers with eSellerate licenses (as I'm sure is the situation with many other Mac developers). As far as I understand, this whole situation has to do something with signing files inside tar.gz archives - on which I couldn't find any info eit

Re: Is "-init" really needed?

2017-08-09 Thread Leo
I love "new". Why type more and clutter your code when you don't have to. Cheers, Leo On 8/8/17 12:45 PM, Alex Zavatone wrote: I see it creeping back in to use with some people, but IMO, new bears too many references to other languages’ use of new. It seems too close to

Re: NSOpenPanel stopped working in some apps on Sierra

2016-12-07 Thread Leo
idea, but it was years ago and I didn't know it back then. It did affect the divider thickness in NSOpenPanel too but didn't cause any problems until Sierra. Leo On 12/7/16 10:43 PM, じょいすじょん wrote: On 2016 Dec 8, at 9:22, Jens Alfke wrote: On Dec 7, 2016, at 3:16 PM, L

Re: NSOpenPanel stopped working in some apps on Sierra

2016-12-07 Thread Leo
___ 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 Subscription: https://lists.apple.co

Re: NSOpenPanel stopped working in some apps on Sierra

2016-12-07 Thread Leo
___ 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 Subscription: https://lists.apple.co

NSOpenPanel stopped working in some apps on Sierra

2016-12-07 Thread Leo
started on Sierra (or maybe with 10.12.1 update). The same code worked for years with no issues. Also, the problem only affects three apps (fortunately). The same code works fine in the rest of them as always. Any ideas? Any help is appreciated! Thanks, Leo

Re: Sandboxing: Can't bookmark enclosing folder of user-selected file

2013-12-25 Thread Leo
___ 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 Subscription: https://lists.apple.co

Re: dataWithPDFInsideRect returns raster text

2013-12-23 Thread Leo
If it doesn't work, you may need to use CGPDF... stuff and combine your elements in PDF manually. But that's just a guess as I never had to solve the issue you describe. Leo On 12/19/13, 12:12 PM, Leonardo wrote: I get a pdf from my NSView using dataWithPDFInsideRect. If my vie

Re: Sandboxing: Can't bookmark enclosing folder of user-selected file

2013-12-22 Thread Leo
___ 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 Subscription: https://lists.apple.co

Sandboxing: Can't bookmark enclosing folder of user-selected file

2013-12-22 Thread Leo
permissions to the enclosing folder. I did some extensive research and experimented with different options with no luck. What am I missing? How can I bookmark the enclosing folder of user-selected file (if at all)? Any help will be appreciated! Thanks, Leo _

Re: Storing strings in code

2012-08-09 Thread Leo
rack this, or crack my demo protection by reverse engineering, then this person wouldn't buy my products anyway so I'm not worrying. Thanks again, Leo On 8/8/12 5:00 PM, Alex Zavatone wrote: How much security do you want? If your strings are basic ASCII, then their value is ASCII

Storing strings in code

2012-08-08 Thread Leo
@ in front of each with find-replace, and then store them as an array which receives the -componentsJoinedByString: method. Is there an easier way? Thanks, Leo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: How to deactivate an app

2012-02-01 Thread Leo
true" later? Leo On 2/1/12 1:44:49 AM, Gerriet M. Denkmann wrote: On 1 Feb 2012, at 11:33, Leo wrote: If I understand your goals correctly, you can send the following AppleScript script: tell application "System Events" to set frontmost of process yourApp to true I tr

Re: How to deactivate an app

2012-01-31 Thread Leo
If I understand your goals correctly, you can send the following AppleScript script: tell application "System Events" to set frontmost of process yourApp to true You can use NSAppleScript of Scripting Bridge (although the latter maybe an overkill for just one line). Leo On 1/31/

Re: NSPopUpButton Binding Frustration

2012-01-30 Thread Leo
On 1/30/12 11:34:11 AM, Keary Suska wrote: For instance, when using selectedObject, the returned object must be an exact object in the content/contentObjects array. -isEqual is not enough. Thank you! You just unexpectedly solved me the headache I had for a long time. Leo

Re: Is slowing down bindings updates possible?

2012-01-15 Thread Leo
I'm not sure if this has already been suggested: What if you don't update the UI unless the change is at least 1 sec or 1% or certain amount of bytes (whatever suits your needs better)? Leo On 1/15/12 12:33:31 AM, Andrew wrote: Thank you all for the opinions. I left the code as-i

Re: Transparency of textured controls

2011-08-23 Thread Leo
On 8/21/11 7:02:09 PM, Andreas Mayer wrote: Am 19.08.2011 um 21:36 schrieb Leo: Actually, I finally realized what the real issue is: Apple for some reason didn't "refresh" NSSegmentedControl Rounded style to match the new appearance of NSTabView controls on Lion. I guess tha

Re: Transparency of textured controls

2011-08-19 Thread Leo
On 8/19/11 11:00:44 AM, Andreas Mayer wrote: Am 13.08.2011 um 18:41 schrieb Leo: For some reason, the textured controls are now transparent (e.g., Textured Rounded and Textured Square of NSSegmentedControl etc.) From the AppKit Release Notes: -- Button Appearance Changes (New since

Scripting Bridge header file problem

2011-08-19 Thread Leo
te whatever I don't need from the header file and correct a few remaining matching methods (if any). Or is there a better way to fix it? Thanks, Leo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: File Copy With Progress?

2011-08-14 Thread Leo
On 8/14/11 3:37:07 AM, Charles Srstka wrote: On Aug 14, 2011, at 1:41 AM, Jens Alfke wrote: On Aug 13, 2011, at 12:27 PM, Leo wrote: You can also use libcurl which supports the 'file' protocol along with ftp, http, etc. It's also not Cocoa, but easy to use and there's als

Re: File Copy With Progress?

2011-08-13 Thread Leo
You can also use libcurl which supports the 'file' protocol along with ftp, http, etc. It's also not Cocoa, but easy to use and there's also its Cocoa wrapper CURLHandle (I'm not sure if they updated it to Intel eventually): http://code.google.com/p/curlhandle/ L

Transparency of textured controls

2011-08-13 Thread Leo
. Is there any way to get rid of this transparency? (Setting isOpague to YES doesn't change anything). Thanks, Leo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Menu Item Key Equivalent

2011-08-09 Thread Leo
On 8/5/11 4:43:06 AM, Uli Kusterer wrote: On 05.08.2011, at 08:49, Jens Alfke wrote: Photoshop has always used letter keys as commands to select tools, and most other image editors on Mac follow suit, like Pixelmator and (I think) Acorn. I’m not sure if these show up in menus, though, although

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Leo
On 8/9/11 6:28:54 PM, Mike Abdullah wrote: Bear in mind PolKit is GPL, unless the author gives you permission otherwise. Yeah actually I had to mention this but it didn't look like the original question referred to a commercial product. ___ Cocoa-de

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Leo
x27;s also excellent Open Source polkit: http://code.google.com/p/polkit/ which is partially based on libcurl and Mac OS X frameworks and supports even more protocols, such as Amazon S3, AFP and SMB. I remember trying the ConnectionKit, and whatever I tried it just didn't work. Leo On 8/

Re: Keeping NSOutlineView always active?

2011-07-28 Thread Leo
Oops sorry - please ignore, just reposted as a separate thread. Leo On 7/28/11 4:09:38 AM, Leo wrote: Hi all, Is it possible to make NSOutlineView look always active, even if it's not the actual first responder? Similar to the way the sidebar appears in the Finder: the selecti

Keeping NSOutlineView always active?

2011-07-28 Thread Leo
thing obvious? Thanks, Leo ___ 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 Subscri

Keeping NSOutlineView always active?

2011-07-28 Thread Leo
thing obvious? Thanks, Leo ___ 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 Subscri

Re: Detecting shared folders

2010-11-18 Thread Leo
Greg and Ken: Thanks a lot for answering my question about shared folders, that's exactly what I needed! Best, Leo > From: Greg Nelson > Date: Wed, 17 Nov 2010 00:01:24 -0500 > To: Leo , > Subject: Re: Detecting shared folders > From: Ken Thomases > Date: Wed, 17

Re: NSSavePanel panel:shouldShowFilename:

2010-11-16 Thread Leo
ave dialog countless times to avoid saving files under unwanted names. Leo ___ 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.appl

Detecting shared folders

2010-11-16 Thread Leo
s. I also assume there must be a list of all shared folders in one of the Unix special directories. Or a way to retrieve it with a shell command. I did some extensive research, couldn't find anything. Any help would be appreciated! Thanks, Leo ___

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-19 Thread Leo Singer
Sorry, I meant to send this to the list. Leo -- Forwarded message -- From: Leo Singer Date: Thu, Feb 19, 2009 at 1:28 PM Subject: Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation To: Greg Parker Thanks for all of the input on this. I

How to make a token field that only accepts numbers: NSTokenField with NSNumberFormatter?

2009-02-19 Thread Leo Singer
Hi, I want to create an NSTokenField that only accepts tokens that are numbers. In fact, I only want integers between 0 and, say, 170 inclusive. I tried dropping an NSNumberFormatter onto my NSTokenField, but it had no perceivable effect. Help! Leo

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Leo Singer
OK, so there is a way to change the size of the stack for an NSThread. But how do I do this for an NSOperationQueue? NSThread has the following selector: - (void) setStackSize:(NSInteger)s; I need to find the equivalent selector for NSOperationQueue. Any ideas out there? Leo #import

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Leo Singer
for (int j = 0 ; j < 256000 && ![self isCancelled] ; j ++) { bigArray[j] = 2*j; } } @end End of TestOperation.mm / On Wed, Feb 18, 2009 at 3:16 AM, Leo Singer wrote: > Hi, > > I have a C++ method that I am invoking from within t

Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Leo Singer
EXEC_BAD_ACCESS. Is there any way for me to give my application more memory, or at least give more memory to the thread that is running this C++ method? Thanks, Leo TestOperation.h / #import class TestOperationImpl { private: bool cancelled; public