Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
On 22 May 2020, at 21:59, Aandi Inston wrote: 1. I wonder if your tests are in a non-English language system. No, running on a non-localized system, and the evidence is overwhelming that this is about SIP / AMFI (based on inspecting the stack trace, which clearly show communication between the process and Apple’s various security policy daemons). 3. I wonder if the other testers who could not reproduce this were using an English language system. There is plenty of people who have confirmed the issue. There was one on this list who said he couldn’t reproduce, but he also said he changed the code to NSLog, so I wonder if he ran from Xcode, in which case the new process probably inherited Xcode’s privileges, and I have just learned that some users have a Developer Tools under System Preferences → Security & Privacy. Adding something to this group seems to disable a lot of security checks (and all child processes). I currently do not see this category on my system though, and based on comments, I am not alone. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to save a window's position and size
The referenced documentation code (©2009) appears to be a wee bit outdated... Try supplying your own NSString for the auto save name, as [window representedFilename] no longer seems to return a valid NSWindowFrameAutosaveName. In AppDelegate.m I have this and it works: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application [self.window setFrameAutosaveName:@"NSWindowFrameAutosaveName"]; } -Carl > On May 22, 2020, at 2:22 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I am trying to follow these instructions: > > https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/WinPanel/Tasks/SavingWindowPosition.html > > However, my app doesn't have a NSWindowController. > It just has a NSViewController and an AppDelegate. > > So i thought I could stick the two lines of code mentioned in the doc in one > of the app delegate's methods. > > I tried to put them in applicationDidFinishLaunching, but they don't have an > effect. > I tried to define -awakeFromNib in the app delegate and put them there, > but awakeFromNib never gets called. > > I defined -windowDidLoad in the app delegate, but that, too, never gets > called. > (However, other methods like windowWillClose or windowDidEndLiveResize do get > called.) > > Any hints how to achieve the goal will be appreciated. > > Best regards, Gabriel > > ___ > > 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.com/mailman/options/cocoa-dev/newslists%40autonomy.caltech.edu > > This email sent to newsli...@autonomy.caltech.edu ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to save a window's position and size
I am trying to follow these instructions: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/WinPanel/Tasks/SavingWindowPosition.html However, my app doesn't have a NSWindowController. It just has a NSViewController and an AppDelegate. So i thought I could stick the two lines of code mentioned in the doc in one of the app delegate's methods. I tried to put them in applicationDidFinishLaunching, but they don't have an effect. I tried to define -awakeFromNib in the app delegate and put them there, but awakeFromNib never gets called. I defined -windowDidLoad in the app delegate, but that, too, never gets called. (However, other methods like windowWillClose or windowDidEndLiveResize do get called.) Any hints how to achieve the goal will be appreciated. Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
> On May 22, 2020, at 8:42 AM, Allan Odgaard via Cocoa-dev > wrote: > > On 23 Apr 2020, at 21:15, Rob Petrovec wrote: > >> If what you say is correct then everyone would be seeing a delay since most >> people don’t have blazing fast internet connections. I do not think this is >> the normal behavior. I think it is specific to your system, otherwise there >> would be TONS of people complaining about slowness. > > Episode 379 of ATP has just been released and both Marco Arment and John > Siracusa are complaining about significant delays after upgrading to macOS > 10.15, though for John Siracusa I think only one of his machines has the > problem. > > Also, I think I already mentioned it, but I had a friend of mine run tests on > his machine in another geographical zone, and he saw delays as well. > >> Either way, did you file a bug with a sysdiagnose taken during the delay? >> If so, do you have the bug number? > > Several people in this thread were asking for bug numbers: I do not > understand this, no-one outside of Apple can read these bugs, right? Correct, however, you are presuming that no apple engineers reads this mailing list. That would be an incorrect assumption. —Rob ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
Your report is interesting. I have been following it but may have missed a part of the discussion, so here is one thought I had. You say that getting the display name of ~/Documents may result in a delay. This is localizable, so that in Portugal (for example) the display name is Documentos. So here are thoughts 1. I wonder if your tests are in a non-English language system. 2. I wonder if in an English language system there is a fast path that tells the system to bypass localization tests. 3. I wonder if the other testers who could not reproduce this were using an English language system. I observe that the internet says (so it must be true) that the test for localized folders is a hidden file in the folder called ".localized". To check for this in any obvious way is going to need read access to the folder, and hence may trigger security checking. On Fri, 22 May 2020 at 15:43, Allan Odgaard via Cocoa-dev < cocoa-dev@lists.apple.com> wrote: > On 23 Apr 2020, at 21:15, Rob Petrovec wrote: > > > If what you say is correct then everyone would be seeing a delay since > > most people don’t have blazing fast internet connections. I do not > > think this is the normal behavior. I think it is specific to your > > system, otherwise there would be TONS of people complaining about > > slowness. > > Episode 379 of ATP has just been released and both Marco Arment and John > Siracusa are complaining about significant delays after upgrading to > macOS 10.15, though for John Siracusa I think only one of his machines > has the problem. > > Also, I think I already mentioned it, but I had a friend of mine run > tests on his machine in another geographical zone, and he saw delays as > well. > > > Either way, did you file a bug with a sysdiagnose taken during the > > delay? If so, do you have the bug number? > > Several people in this thread were asking for bug numbers: I do not > understand this, no-one outside of Apple can read these bugs, right? > > But now I wrote up a summary of what I have found so far with bug > numbers included: > https://sigpipe.macromates.com/2020/macos-catalina-slow-by-design/ > ___ > > 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.com/mailman/options/cocoa-dev/aandi%40quite.com > > This email sent to aa...@quite.com > ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
On 23 Apr 2020, at 21:15, Rob Petrovec wrote: If what you say is correct then everyone would be seeing a delay since most people don’t have blazing fast internet connections. I do not think this is the normal behavior. I think it is specific to your system, otherwise there would be TONS of people complaining about slowness. Episode 379 of ATP has just been released and both Marco Arment and John Siracusa are complaining about significant delays after upgrading to macOS 10.15, though for John Siracusa I think only one of his machines has the problem. Also, I think I already mentioned it, but I had a friend of mine run tests on his machine in another geographical zone, and he saw delays as well. Either way, did you file a bug with a sysdiagnose taken during the delay? If so, do you have the bug number? Several people in this thread were asking for bug numbers: I do not understand this, no-one outside of Apple can read these bugs, right? But now I wrote up a summary of what I have found so far with bug numbers included: https://sigpipe.macromates.com/2020/macos-catalina-slow-by-design/ ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com