Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads

2020-04-19 Thread David M. Cotter via Cocoa-dev
this may be difficult for other to repro i have discovered it may have to do with permissions / entitlements that have been granted the app by the user, and that resetting all perms to default will "fix" the problem in the terminal, do this: > tccutil reset All i expect that after that, your de

Re: Preventing app from being restored or saving info in "Saved Application State"

2019-11-11 Thread David M. Cotter via Cocoa-dev
i too have this question > On Nov 10, 2019, at 5:39 PM, Lars C. Hassing via Cocoa-dev > wrote: > > I have developed two Cocoa apps, one launching the other helper app. > > If number two app crashes then macOS may ask the user if he wants to relaunch > it, > but it makes no sense launching it

Re: Thoughts on Cocoa

2019-10-02 Thread David M. Cotter via Cocoa-dev
agreed. i'm a small one person company with about ten of thousand customers, half mac half windows. wrote for mac first, carbon C++ ported to windows by porting CoreFoundation, then simulating Carbon APIs for everything else it's taken me YEARS to try to switch to Cocoa, and i'm still not done

Re: code signing fails to verify on 10.10?

2019-05-29 Thread David M. Cotter via Cocoa-dev
well, the solution was to just re-build the offending library with 10.9 as the target and all is well > On May 20, 2019, at 9:38 AM, David M. Cotter wrote: > > i saw this article: > https://stackoverflow.com/questions/41865537/how-does-apples-codesign-utility-decide-which-sha-a

Re: code signing fails to verify on 10.10?

2019-05-20 Thread David M. Cotter
elated, but the odd thing is that the app launches FINE on 10.9, or 10.11 and later. why fail only on 10.10? > On May 19, 2019, at 8:38 PM, David M. Cotter wrote: > > I’m developing on 10.14.4 > using Xcode 9.4.1 > signing via command line (not via xcode) > > my app wo

code signing fails to verify on 10.10?

2019-05-19 Thread David M. Cotter
p/kJams 2.app/Contents/MacOS/InstallTool > --validated:/Users/davec/Desktop/kJams 2.app/Contents/MacOS/InstallTool > /Users/davec/Desktop/kJams 2.app: valid on disk > /Users/davec/Desktop/kJams 2.app: satisfies its Designated Requirement and: > davec$ spctl -a -t exec -vv /Users/davec

Re: NSTouchBar in Carbon

2016-12-12 Thread David M. Cotter
ticle/mixing-objective-c-c++-and-objective-c++> > > Hope it helps. > > - Alex Zavatone > > On Dec 12, 2016, at 10:45 AM, David M. Cotter wrote: > >> yes, it IS a carbon app but i can use objectiveC in it, so no problem there, >> i just need to know how to cr

Re: NSTouchBar in Carbon

2016-12-12 Thread David M. Cotter
rewarded with a free karaoke jukebox app! :D :D -dave > On Dec 12, 2016, at 5:08 AM, Richard Charles wrote: > > >> On Dec 11, 2016, at 11:22 PM, David M. Cotter wrote: >> >> So I need to programmatically instantiate an NSTouchBar, somehow > > This may be somewha

NSTouchBar in Carbon

2016-12-11 Thread David M. Cotter
My app is mostly C++ (because it’s cross platform) with Carbon on the UI edges, and the absolute minimum required ObjectiveC++ to make it work. (please no discussion about why this is stupid / i should write a modern app etc) So I need to programmatically instantiate an NSTouchBar, somehow i d

Re: Apple Events not being handled during UI tracking

2014-12-15 Thread David M. Cotter
does anyone have any idea why this is happening now? how to fix it properly? > On Dec 14, 2014, at 12:27 PM, David M. Cotter wrote: > > In Mavericks and earlier, AppleEvents would dispatch as they came in, even > during control-tracking (eg: the menu bar) > however, in Yo

Apple Events not being handled during UI tracking

2014-12-14 Thread David M. Cotter
In Mavericks and earlier, AppleEvents would dispatch as they came in, even during control-tracking (eg: the menu bar) however, in Yosemite, AEs are blocked. what’s the deal there? anyone know why? a workaround is to install an idle timer and manually pull events, but that’s so 90’s. shouldn

Re: Cursor - Unable to use retina image

2014-11-20 Thread David M. Cotter
see fixed code below > On Oct 1, 2013, at 10:22 AM, Abdul Sowayan wrote: > > Hi folks, > > I have two images, a retina and a non-retina image that I would like to use > as a Cursor. I crop the transparency out of the images and combine them into > one NSImage that has two representations, a r

Re: Showing numpad key equivs in menu items

2013-05-08 Thread David M. Cotter
> Would you be able to share this code? well, it's incomplete at the moment, i haven't sewn it all up.and besides that i'd have to get permission to share it, as it's "adobe" code. i'm on sabbatical now so i'm not even really "here" too. > TextMate also draws a custom string as key equivale

Re: Showing numpad key equivs in menu items

2013-05-07 Thread David M. Cotter
Hi, I'm Dave, senior engineer at Adobe Systems. We definitely want this functionality, in fact filed a DTS incident for (and got some help with) custom-drawing menu items, for the express purpose of drawing an arbitrary string as the "keyboard shortcut" in menus. and i can tell you the work

Re: Validating dictionary strings file

2011-11-20 Thread David M. Cotter
strings files are not true dictionary files in the sense of NS or CF dictionaries, so you can't treat them like an xml file (plist) you can parse them line by line, manually, if you want to read them in. unless there's another way i don't know about. On Nov 20, 2011, at 9:33 PM, Gideon King w

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-17 Thread David M. Cotter
http://codykrieger.com/gfxCardStatus/ On May 17, 2010, at 4:10 PM, Michael Diehr wrote: > I'm in rather the opposite boat -- my app does NOT trigger the switch to > NVIDIA, and my OpenGL calls fail (actually, it's more complicated that this > as it's a screensaver and a helper app) but it sound

Re: Determine if only single instance is running.

2010-02-22 Thread David M. Cotter
kinda carboney but it think it should work boolGetIndProcessType( OSType typeToFind, OSType creatorToFind, ProcessSerialNumber *psnP, short

Re: setAction:@selector is not working ?

2010-02-19 Thread David M. Cotter
(), notifyByPosB); } } } } On Feb 19, 2010, at 12:11 PM, Hank Heijink (Mailinglists) wrote: > On Feb 19, 2010, at 2:43 PM, David M. Cotter wrote: > >> just before the line of code that pops up the menu, i iterate over all the >> items >> s

Re: setAction:@selector is not working ?

2010-02-19 Thread David M. Cotter
tTarget:self]; > > I remember a long time ago I had a problem where if I reset the item's > action, it would set the target to nil for some reason. So in practice I > usually reset the target even if it's the same. > > Not sure if this is your issue though. > > &

Re: setAction:@selector is not working ?

2010-02-19 Thread David M. Cotter
ction selector. what could *possibly* intervene here? On Feb 19, 2010, at 11:38 AM, Jens Alfke wrote: > > On Feb 19, 2010, at 11:31 AM, David M. Cotter wrote: > >> i'm completely baffled by this. does anyone have a hint? >> >>>> i'm going to do a p

Re: setAction:@selector is not working ?

2010-02-19 Thread David M. Cotter
i'm completely baffled by this. does anyone have a hint? >> i'm going to do a popup menu >> i run thru all the items and call >> >> [myMenuItem setAction:@selector(myFunction:)]; >> >> upon first run, my "myFunction" never gets called with the result of the >> menu item pick. >> >> but then,

Re: setAction:@selector is not working ?

2010-02-18 Thread David M. Cotter
target set to self this is a menu item class override, the "myFunction" selector is part of the menu item class note it works all the time except for the first time after switching out then in On Feb 18, 2010, at 6:32 PM, Graham Cox wrote: > > On 19/02/2010, at 12:53 PM, David

setAction:@selector is not working ?

2010-02-18 Thread David M. Cotter
i'm going to do a popup menu i run thru all the items and call [myMenuItem setAction:@selector(myFunction:)]; upon first run, my "myFunction" never gets called with the result of the menu item pick. but then, it works 100% of the time *after* i switch out then back into my app whaaa?? does a

n00b Q re: AppController

2009-12-24 Thread David M. Cotter
my carbon app loads a couple plugins, which use Cocoa. each plugin implements AppController. should they? i get this in my log upon launch: objc[17568]: Class AppController is implemented in both /Library/Application Support/kJams/Burner.bundle/Contents/MacOS/Burner and /Library/Application

Re: Diacritics in Thai

2009-12-17 Thread David M. Cotter
>> When I use rangeOfString: options with NSDiacriticInsensitiveSearch >> not only the tone marks are ignored, but also some vowels. >> >> Same problem with NSPredicate "someKey =[d] someValue". >> >> It is true that in unicode-speak both the tone marks and the ignored vowels >> are cat

Re: Diacritics in Thai

2009-12-17 Thread David M. Cotter
this is kindof important, an anyone at apple weigh in on this? On Dec 14, 2009, at 2:28 AM, Gerriet M. Denkmann wrote: > > When I use rangeOfString: options withNSDiacriticInsensitiveSearch > not only the tone marks are ignored, but also some vowels. > > Same problem with NSPredicate

Re: Detecting lack of user input system wide.

2009-12-10 Thread David M. Cotter
dunno about cocoa, but in Carbon land you can do InstallEventLoopIdleTimer(). I expect there is an equivalent in cocoa On Dec 10, 2009, at 1:10 AM, Kenny Carruthers wrote: > Hello, > > What is the correct way to detect that there has been no keyboard or mouse > input by the user over a given p

Re: totally baffled by "odoc" apple event failing on launch

2009-12-03 Thread David M. Cotter
>>> there is a component we must load (a plugin) that is outside of our control >> that runs an event loop, before we have our NSApp initialized (therefore it >> is >> unable to handle the :openDocuments call) > So, just to clarify - the "odoc" apple event is NOT failing on launch. It's > just t

Re: totally baffled by "odoc" apple event failing on launch

2009-12-02 Thread David M. Cotter
there is a component we must load (a plugin) that is outside of our control that runs an event loop, before we have our NSApp initialized (therefore it is unable to handle the :openDocuments call) On Dec 2, 2009, at 11:06 AM, Matt Neuburg wrote: > On Tue, 1 Dec 2009 15:05:19 -0800, "

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread David M. Cotter
; Tried AE Monitor (Oxalyn Software)? > > Oxalyn Software > Æ Monitor > > > Gary > > On Dec 1, 2009, at 11:31 AM, David M. Cotter wrote: > >>>> recently our app has stopped responding to "odoc" apple events on startup. >>>> that

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread David M. Cotter
>> recently our app has stopped responding to "odoc" apple events on startup. >> that is, if the user double clicks a document of our app, and this causes the >> app to launch, then the document is not opened. (cnr when app is already >> launched). same story dropping the doc icon onto the app ico

Re: totally baffled by "odoc" apple event failing on launch

2009-11-30 Thread David M. Cotter
yes i have that method. i'm just saying it is not being called in this case. the event is never received by the app on startup. if i double click the icon AFTER startup, it works fine. On Nov 30, 2009, at 6:50 PM, Dave Keck wrote: > I'd imagine NSApp's delegate method -application:openFile: is

Re: totally baffled by "odoc" apple event failing on launch

2009-11-30 Thread David M. Cotter
can only suspend an event if it's being handled. the problem is my app never gets to handle them. On Nov 30, 2009, at 5:33 PM, David M. Cotter wrote: > Coca64 only: > > recently our app has stopped responding to "odoc" apple events on startup. > that is, if the use

totally baffled by "odoc" apple event failing on launch

2009-11-30 Thread David M. Cotter
Coca64 only: recently our app has stopped responding to "odoc" apple events on startup. that is, if the user double clicks a document of our app, and this causes the app to launch, then the document is not opened. (cnr when app is already launched). same story dropping the doc icon onto the a

menu action never being called?

2009-11-03 Thread David M. Cotter
i have a menu that lives in the menu bar (top level) but i also use it in a context menu when the context menu is about to be shown, i take the menu out of the menu bar (substituting an empty menu by the same name so the menu bar doesn't flicker with the menu suddenly missing) and stick it i

Re: menu action never being called?

2009-11-03 Thread David M. Cotter
really i realize the design is not optimal but it can not be changed at this time. i need to make it work the way it is. please use that as the starting assumption. (telling someone to change their design more frustrating than actually helpful) if you care, the menu in the menu bar has 3

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-11-02 Thread David M. Cotter
okay what i really want to know is: how does QuartzDebug programmatically turn on this flash region thing? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-31 Thread David M. Cotter
the point is i want to programmatically turn it on and off via my app's "debug" menu, so testers can see it without having to install the dev tools On Oct 31, 2009, at 11:23 AM, Kyle Sluder wrote: On Sat, Oct 31, 2009 at 10:55 AM, David M. Cotter wrote: hmm, that seems

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-31 Thread David M. Cotter
elf On Oct 30, 2009, at 7:41 PM, Ben Haller wrote: On 30-Oct-09, at 9:17 PM, Sean McBride wrote: David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said: anyone have some sample code for a function that does the equivalent of HIViewFlashDirtyArea() ? i'd like to have this i the

64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread David M. Cotter
anyone have some sample code for a function that does the equivalent of HIViewFlashDirtyArea() ? i'd like to have this i the debug version of my program to help flush out inefficient invalidating. or: how do i fetch the invalid "region" of an NSWindow* ? ___

Re: debugging cursors

2009-10-09 Thread David M. Cotter
yes i have been using remote debugging the whole time. On Oct 9, 2009, at 10:00 AM, Sean McBride wrote: On 10/7/09 5:50 PM, David M. Cotter said: how do i tell the OS to stop setting my cursor to the beachball whilst stopped in the debugger? i'm debugging my cursor setting stuff and

Re: debugging cursors

2009-10-08 Thread David M. Cotter
Read the documentation i have extensively read the documentation tell us what you tried (preferably by posting your code), and we might be able to help. i told you: i set the cursor in response to the user pressing enter after editing a text edit. then 1/2 second later, the OS sets it bac

Re: debugging cursors

2009-10-08 Thread David M. Cotter
Really?? does nobody know how to do this? Likely not, because you're not explaining why. You mention "changed the cursor out from under me" ... is this because you're having some problem in your app? sorry, yes. when the user types a number in a box and presses enter, i create a curso

Re: debugging cursors

2009-10-08 Thread David M. Cotter
Really?? does nobody know how to do this? On Oct 7, 2009, at 5:57 PM, David M. Cotter wrote: okay what i *really* need to do is override the OS *ever* setting the cursor to arrow eg: [[NSCursor arrowCursor] set]; i want to override that. i need to tell the OS to knock it off. worst

Re: debugging cursors

2009-10-07 Thread David M. Cotter
PM, David M. Cotter wrote: how do i tell the OS to stop setting my cursor to the beachball whilst stopped in the debugger? i'm debugging my cursor setting stuff and that makes it impossible ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

debugging cursors

2009-10-07 Thread David M. Cotter
how do i tell the OS to stop setting my cursor to the beachball whilst stopped in the debugger? i'm debugging my cursor setting stuff and that makes it impossible ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Some more questions on NSOpenPanel

2009-09-30 Thread David M. Cotter
no, this is the save dialog. i'm talking about the text edit field. i want to be able to cut / copy / paste / select all in the TE field of the save dialog On Sep 30, 2009, at 4:05 PM, Ken Thomases wrote: On Sep 30, 2009, at 5:57 PM, David M. Cotter wrote: so am i just out of lu

Re: Some more questions on NSOpenPanel

2009-09-30 Thread David M. Cotter
so am i just out of luck on this? i am completely out of ideas. On Sep 30, 2009, at 12:57 PM, David M. Cotter wrote: we set the menu itself to be it's own first responder this app came from legacy carbon code and we still go thru the ancient menu dispatching mechanism. the menu's

Re: Some more questions on NSOpenPanel

2009-09-30 Thread David M. Cotter
we set the menu itself to be it's own first responder this app came from legacy carbon code and we still go thru the ancient menu dispatching mechanism. the menu's own first responder all it does is take note of the menu ID and menu item index and fake up the result of the old "menuselect"

Re: Some more questions on NSOpenPanel

2009-09-30 Thread David M. Cotter
If anyone has any clue at all on this, or even some random thing that i could try to get this to work, i'd be most syked. thanks again. Just before we put up the dialog, we enable undo, cut, copy, paste, clear, and select all. these items all have the correct HICommand assigned (eg: "sele

Re: Some more questions on NSOpenPanel

2009-09-29 Thread David M. Cotter
Just before we put up the dialog, we enable undo, cut, copy, paste, clear, and select all. these items all have the correct HICommand assigned (eg: "select all" has kHICommandSelectAll as it's "tag") Tag? kHICommandSelectAll? This is the cocoa-dev list. ;-) okye, well yes:

Re: Some more questions on NSOpenPanel

2009-09-29 Thread David M. Cotter
originally from Frameworks IT list: Vlad: For some reason cmd-A does not work in our NSOpenPanel to select the current contents of the browser but navigation keystrokes do work. Is there something obvious that I am missing? Any clues? Corbin: Do you have an edit menu with Select All (Cmd-A

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-17 Thread David M. Cotter
in the Carbon version of the very same app, i see this: Why do you want to do this? This is incredibly confusing. Documents don't have small titlebars. I'm just the engineer tasked with implementing this. Just about all of the Adobe CS5 applications are going to do it this way. they al

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-17 Thread David M. Cotter
On 18/09/2009, at 11:37 AM, David M. Cotter wrote: is there such a thing as a "normal window" that has a very small title bar? Hi David, No, I think you'll need to roll your own. You can get the images for the close button etc by doing something li

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-17 Thread David M. Cotter
ndow classes / types / styles for which there IS NO red dot in the "close window" widget? even if you set it to have one? <> On Sep 17, 2009, at 3:47 PM, Randall Meadows wrote: On Sep 17, 2009, at 4:39 PM, David M. Cotter wrote: i really am stuck on this, i've googled a

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-17 Thread David M. Cotter
i really am stuck on this, i've googled and searched the apple site but can find nothing on this. if anyone has any clue i would be most siked. bouns: free karaoke app for someone who solves this! -dave On Sep 16, 2009, at 10:54 AM, David M. Cotter wrote: when i try to set a break

Re: click on sub-menu's super-item dismisses menu?

2009-09-17 Thread David M. Cotter
Sep 17, 2009, at 3:26 PM, Peter Ammon wrote: On Sep 17, 2009, at 3:09 PM, David M. Cotter wrote: say the user say clicks the file menu, the file menu opens then say they hover over "recent items" and then clicks it (i don't know, out of habit or something) in carbon, this

click on sub-menu's super-item dismisses menu?

2009-09-17 Thread David M. Cotter
say the user say clicks the file menu, the file menu opens then say they hover over "recent items" and then clicks it (i don't know, out of habit or something) in carbon, this click is ignored, rightfully it seems in cocoa, it dismisses the menu. is there a way i can tell the menu or menu

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-16 Thread David M. Cotter
when i try to set a breakpoint on setDocumentEdited, the "enabled" check box shows "mixed" state, and the breakpoint is never hit. if i try to set it to "on" it goes back to mixed state so i can't set a breakpoint :( What are the exact steps you use to set the breakpoint? open breakpoints

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-15 Thread David M. Cotter
anyone have a hint here? this is totally baffling me. On Sep 11, 2009, at 3:44 PM, David M. Cotter wrote: the myNSWindow is NOT nil when i try to set a breakpoint on setDocumentEdited, the "enabled" check box shows "mixed" state, and the breakpoint is never hit. if

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-11 Thread David M. Cotter
must use myNSWindow still not working On Aug 7, 2009, at 8:44 PM, Marco S Hyman wrote: On Aug 7, 2009, at 5:53 PM, David M. Cotter wrote: this is code that has been carbon forever and now has absolutely minimal cocoa enough to get it running. if there is an NSDocument i don't know about

Re: detect "left mouse button clicked in menu bar"

2009-08-13 Thread David M. Cotter
sorry, bad choice of words on my part. i meant i want to call a function. anyway i learned about "NSMenuDidBeginTrackingNotification" which does exactly the trick i was looking for On Aug 13, 2009, at 8:09 PM, Michael Watson wrote: On Aug 13, 2009, at 16:56, "David M. C

detect "left mouse button clicked in menu bar"

2009-08-13 Thread David M. Cotter
i know i can detect when a particular menu is about to be shown, but what I want is to run a quick process before any menus from the menu bar are shown, and not run it again all the while the user is browsing the menus in the menu bar how do i do this? apparently there is no "mouseDown" e

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-08-07 Thread David M. Cotter
08/08/2009, at 10:20 AM, David M. Cotter wrote: [myNSWindow setDocumentEdited:dirtyB] it doesn't set the little red dot in the close box. and yes, "dirtyB" is set to "YES". Have you tried setting it on the window's controller instead? The controller may need t

[myNSWindow setDocumentEdited:dirtyB] fail ??

2009-08-07 Thread David M. Cotter
i'm shoe-horning an old carbon app into cocoa. there is no "document model" so i'm just managing the "dirty bit" manually. when i call: [myNSWindow setDocumentEdited:dirtyB] it doesn't set the little red dot in the close box. and yes, "dirtyB" is set to "YES". why doesn't it work?

adding a sub menu to multiple super menus?

2009-08-05 Thread David M. Cotter
in carbon, you can have a sub menu that is used in more than one super menu. is there a trick to get this to go in Cocoa? otherwise i'm stuck with cloning and managing all the clones (eg: if i enable a menu item, or if i change the key shortcut, or change the item text, i have to find al