Re: Full-screen not working

2023-08-15 Thread Gary L. Wade via Cocoa-dev
I would suggest asking your user for a system report or sysdiagnose. It might glean some details about their environment. -- Gary > On Aug 15, 2023, at 3:30 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have one user of my macOS app (under macOS 13.4.1) > where the app does not want to g

Re: Retrieving the EXIF date/time from 250k images

2023-01-07 Thread Gary L. Wade via Cocoa-dev
You don’t seem to understand modern filesystems or modern hardware like some of us. -- Gary L. Wade https://www.garywade.com/ > On Jan 7, 2023, at 3:29 PM, Gabriel Zachmann wrote: > > *Maybe* ... > that would mean that the filesystem performs predictive caching like t

Re: Retrieving the EXIF date/time from 250k images

2023-01-07 Thread Gary L. Wade via Cocoa-dev
Since file systems and the associated hardware are designed to be efficient by caching data and knowing things like where one file or block is in relation to another, there’s a possibility these mechanisms could work to your advantage, pulling in the data while “in the neighborhood.” There’s no

Re: Retrieving the EXIF date/time from 250k images

2022-08-15 Thread Gary L. Wade via Cocoa-dev
You should do any whitespace trimming first and be sure your date formatter is set correctly as any deviation will almost always fail. -- Gary > On Aug 15, 2022, at 2:51 AM, Gabriel Zachmann wrote: > > A detail I left out in-between: whitespace trimming. > > Or, does anyone know if dateFromStr

Re: Retrieving the EXIF date/time from 250k images

2022-08-14 Thread Gary L. Wade via Cocoa-dev
I noticed you release the fileProps but didn’t release the image, but I don’t know if that’s one of those details you left out for clarity. Also, depending on some factors like mutability, while the initWithString call with a CFStringRef might essentially be a no-op, you can just do the typecas

Re: Exception not being caught in try statement

2021-03-26 Thread Gary L. Wade via Cocoa-dev
Try surrounding the call with beginEditing and endEditing on the text storage. If it still happens, submit a feedback to Apple with the full crash log. -- Gary L. Wade http://www.garywade.com/ > On Mar 26, 2021, at 4:11 AM, Mark Allan via Cocoa-dev > wrote: > > Hi folks, > > Some users are r

Re: How to parse a log file

2020-10-26 Thread Gary L. Wade via Cocoa-dev
Line 7 appears to show your app allocating an array with one of its objects being nil. -- Gary L. Wade http://www.garywade.com/ > On Oct 26, 2020, at 3:02 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > From a user, I received a log file that contains an error (see below) > and a stack trace

Re: Relieving memory pressure

2020-06-07 Thread Gary L. Wade via Cocoa-dev
The vast majority of data used by a CGImageRef for any sufficiently representable image is going to be its bitmap data (a 1x1 pixel image wouldn’t), and you can calculate that by using CGImageGetBytesPerRow and its neighbor APIs. If I recall from your previous posts, you are showing very detai

Re: Localization under Catalina

2020-05-27 Thread Gary L. Wade via Cocoa-dev
Be sure you use leading and trailing rather than left and right for things that can change in direction for RTL. There are some small set of cases where you want left and right, but unless you’re aware of those, it’s best to always use leading and trailing. -- Gary L. Wade http://www.garywade.co

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

2020-04-24 Thread Gary L. Wade via Cocoa-dev
Also, did you take advantage of one of your free tech support incidents? -- Gary L. Wade http://www.garywade.com/ > On Apr 24, 2020, at 8:26 AM, Gary L. Wade via Cocoa-dev > wrote: > > That’s a very narrow view of reality, which I know to be far broader. > > What’s t

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

2020-04-24 Thread Gary L. Wade via Cocoa-dev
That’s a very narrow view of reality, which I know to be far broader. What’s the feedback number? -- Gary > On Apr 24, 2020, at 8:01 AM, Allan Odgaard via Cocoa-dev > wrote: > > That said, I *have* filed a report about this, but I still seek more > information about the issue, which I had hop

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

2020-04-24 Thread Gary L. Wade via Cocoa-dev
Here’s two web sites that should help you get the answer you want. Try one or both: https://feedbackassistant.apple.com/welcome https://www.apple.com/jobs/us/ -- Gary ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

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

2020-04-23 Thread Gary L. Wade via Cocoa-dev
Have you tried a speed check with just iCloud turned off but internet on? -- Gary ___ 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)l

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

2020-04-19 Thread Gary L. Wade via Cocoa-dev
Regardless of whatever workaround you find, I would second Rob’s suggestion to go ahead and file a bug with a sysdiagnose and/or spindump along with a sample app that reproduces it. This isn’t expected behavior, and the teams at Apple are still working and would be very interested in seeing thi

Re: Catalina scroll view issues

2019-12-19 Thread Gary L. Wade via Cocoa-dev
Interesting. This could be a layering issue then, and it could be due to a configuration unique to your customer’s setup. Since you’re doing things on a lower level than expected, there may be some nuance you need to add or something Apple needs to fix that may work fine using higher level fra

Re: Catalina scroll view issues

2019-12-17 Thread Gary L. Wade via Cocoa-dev
Since you’re using CoreGraphics, it’s very likely there’s an edge case with your customers’ systems that you aren’t encountering. CG is pretty much the lowest practical level in the graphics stack. Since your app does reproduce the issue but in other configurations than yours, you could still a

Re: Catalina scroll view issues

2019-12-16 Thread Gary L. Wade via Cocoa-dev
If you’re not involving a higher level class like NSTextView or a medium level one like CoreText, it sounds like you might be going all the way down to CoreGraphics? If so, you might find your disparity between your system and your users in things like retina choice for a particular display and

Re: Catalina scroll view issues

2019-12-14 Thread Gary L. Wade via Cocoa-dev
I see from your personal web site you know Hebrew. Is it possible the affected/non-drawing pages contain some RTL text while those that don’t only contain LTR? I have seen some bugs with RTL text within NSTextView where the text was/wasn’t drawing in a similar manner. Do you operate at a CoreTex

Re: Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-11-29 Thread Gary L. Wade via Cocoa-dev
it’s doing. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Nov 27, 2019, at 11:35 AM, Gary L. Wade via Cocoa-dev > wrote: > > You want to use a file wrapper rather than data and specify the document type > in the attributes as RTFD. >

Re: Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-11-27 Thread Gary L. Wade via Cocoa-dev
You want to use a file wrapper rather than data and specify the document type in the attributes as RTFD. -- Gary L. Wade http://www.garywade.com/ > On Nov 27, 2019, at 10:18 AM, Jeff Younker via Cocoa-dev > wrote: > > I am having some difficulty with saving NSAttribu

Re: Future of Cocoa

2019-11-21 Thread Gary L. Wade via Cocoa-dev
INCREDIBLY ridiculous! If I weren’t paid well and have a great, fulfilling job working on all of Apple’s platforms, I’d be tempted to make a competitive version of some of these develops’ apps to show how the difficulty in doing so is blown so out of proportion! It sounds like some people need

Re: Future of Cocoa

2019-11-21 Thread Gary L. Wade via Cocoa-dev
I find the arguments here interesting. If I were to develop an OpenGL-based app, I would probably need at least a week to get something basic working, and I’m sure that applies to pretty much anyone. If someone can spend time learning an SDK like OpenGL, then I don’t see what’s the problem with

Re: Future of Cocoa

2019-11-20 Thread Gary L. Wade via Cocoa-dev
> On Nov 20, 2019, at 8:29 AM, Pier Bover via Cocoa-dev > wrote: > > The vast majority of developers do not go to the WWDC and do not have time > to watch the dozens (hundreds?) of hours of videos to maybe find something > relevant about the future of macOS dev. In that case, scan through the o

Re: Future of Cocoa

2019-11-19 Thread Gary L. Wade via Cocoa-dev
There seems to be a misunderstanding that just because the word “Cocoa” doesn’t appear, nor "Objective-C” in the latest WWDC videos to a great extent, that they are no longer relevant. If you watch any of the videos to the end, you’ll notice that rather than repeating every detail every year, t

Re: Cocoa-dev Digest, Vol 16, Issue 144

2019-11-14 Thread Gary L. Wade via Cocoa-dev
You seem to be overlooking the fact that many of these current and past years’ videos talk about Cocoa by referencing their constituent components like AppKit, MapKit, Collection View, etc. You would benefit greatly by sitting down and watching as many of these videos as possible. -- Gary L. Wad

Re: Cocoa-dev Digest, Vol 16, Issue 144

2019-11-14 Thread Gary L. Wade via Cocoa-dev
> On Nov 14, 2019, at 8:29 AM, Turtle Creek Software via Cocoa-dev > wrote: > > I think this gets back to the transparency issue. If Apple were more open > about the future, it would be easier to know which cliffs are real. > Here’s your free advice and prognostications: https://developer.a

Re: Thoughts on Objective-C++

2019-11-13 Thread Gary L. Wade via Cocoa-dev
If it takes you that long, then you need to hire new developers rather than wasting your time posting complaints on an email list. -- Gary L. Wade http://www.garywade.com/ > On Nov 13, 2019, at 11:32 AM, Turtle Creek Software via Cocoa-dev > wrote: > > We have to plan 5 or 10 years ahead, beca

Re: Thoughts on Objective-C++

2019-11-11 Thread Gary L. Wade via Cocoa-dev
If you wish to solve the problems you perceive to exist, you should join an Objective-C/Objective-C++ email list or hire developers experienced in those nuances. -- Gary > On Nov 11, 2019, at 10:47 AM, Turtle Creek Software via Cocoa-dev > wrote: > >  >> >>> Obj-C++ *is* a superset of C++,

Re: Thoughts on productivity

2019-10-24 Thread Gary L. Wade via Cocoa-dev
On Oct 24, 2019, at 6:08 AM, Turtle Creek Software via Cocoa-dev wrote: > Is there a way to fix this stuff? … > For the rest, Apple really needs to listen to developers more. This is how you move towards a solution. https://developer.apple.com/account/#/feedback-assistant https://developer.ap

Re: Thoughts on Cocoa source code

2019-10-11 Thread Gary L. Wade via Cocoa-dev
The hard thing to make work best with NSComboBox is what to have its data source return when a user enters something not available in the list, so there is that decision to make, especially if your list is very sparse. You could also just use a pop up button that allows both mouse selection and

Re: Thoughts on Cocoa source code

2019-10-11 Thread Gary L. Wade via Cocoa-dev
Clarification: For long-time Mac and now available in SwiftUI, you can even write “no” code to do some things with bindings. -- Gary L. Wade http://www.garywade.com/ > On Oct 11, 2019, at 8:31 AM, Gary L. Wade > wrote: > > For Mac and SwiftUI, you can even write “no” code to do some things wit

Re: Thoughts on Cocoa source code

2019-10-11 Thread Gary L. Wade via Cocoa-dev
I’m one of the few on the list who has experienced every growing pain you’ve mentioned from 680x0 Macintosh now up to SwiftUI, and not only supporting a US English environment but even RTL UI (Arabic and Hebrew scripts) mixed with LTR languages across every current platform, and I will admit it’

Re: A question in regards to AddInstanceForFactory

2019-09-26 Thread Gary L. Wade via Cocoa-dev
Are you running on Mojave or Catalina beta? I’ve found some things in some simulators work better when under Catalina beta. -- Gary L. Wade http://www.garywade.com/ > On Sep 26, 2019, at 5:37 AM, Eric E. Dolecki via Cocoa-dev > wrote: > > FYI: This only appears when running in a simulator. >

Re: CGImageSourceCopyPropertiesAtIndex fails sometimes

2019-09-25 Thread Gary L. Wade via Cocoa-dev
I don’t recall if the URL can be a remote URL in addition to a file URL, but regardless, check the status of the source ref with CGImageSourceStatus first. The index value is used for compound images like animated GIFs and PNGs. -- Gary L. Wade http://www.garywade.com/ > On Sep 25, 2019, at 8:10

Re: ARC

2019-08-24 Thread Gary L. Wade via Cocoa-dev
Sometimes the best approach when something seems magical or extremely unexpected is to step away to the marker board and draw pictures and a “movie” storyboard of what’s going on, tallying up visually everything. Unilaterally using strong or weak references is not the answer. Often when I go thr

Re: NSLog displays inconsistent format for NSDate

2019-08-20 Thread Gary L. Wade via Cocoa-dev
If you want to output a date in a predictable format, you should use a date formatter. When I ran a sample app under the simulator for tvOS 13 in Xcode 11 beta 5, I got these results for the specified locales: 2019-08-20 19:51:05.637667-0700 TestDateDescription[32894:2579867] ar_AE: The date i