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

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/ <http://www.garywade.com/> > On Jan 7, 2023, at 3:29 PM, Gabriel Zachmann wrote: > > *Maybe* ... > that would mean that the filesystem performs predi

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

2023-01-07 Thread Gary L. Wade via Cocoa-dev
no guarantee, of course, but I feel it’s worth considering. -- Gary L. Wade http://www.garywade.com/ > On Jan 7, 2023, at 10:37 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > So, why would would several threads loading those images in parallel help > here? In my thinking, they wi

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

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

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, >

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) &

Re: Relieving memory pressure

2020-06-07 Thread Gary L. Wade via Cocoa-dev
provide; you might have to drop down to that level for your needs. And it may be just as important if you have a system with multiple large-format screens with so much data. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jun 7, 2020, at 5:31 AM, Gabriel Zachmann

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

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

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

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

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
this. Once filed, if you do find a workaround, you can append that to the bug. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Apr 19, 2020, at 10:58 AM, Allan Odgaard via Cocoa-dev > wrote: > > On 20 Apr 2020, at 0:37, Rob Petrovec wrote: > >&g

Re: Catalina scroll view issues

2019-12-19 Thread Gary L. Wade via Cocoa-dev
as needed so all developers can benefit from the desired changes. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 19, 2019, at 6:09 AM, Redler Eyal wrote: > >>> >>> OK, I'll try to get the sysdiagnose from my users before submitting. I mu

Re: Catalina scroll view issues

2019-12-17 Thread Gary L. Wade via Cocoa-dev
there, reports about those can help everyone. -- Gary L. Wade http://www.garywade.com/ > On Dec 17, 2019, at 2:12 AM, Redler Eyal wrote: > > I am drawing using core graphics. I tried turning copiesOnScroll and this > didn't seem to help. > > I'll gladly write a feedback repor

Re: Catalina scroll view issues

2019-12-16 Thread Gary L. Wade via Cocoa-dev
and changes with respect to layers, especially things like the copiesOnScroll. If these don’t lead you to a solution where you say, “Oh, I really should’ve done this rather than that,” (20/20 hindsight) then write up a feedback report and add its URL here. -- Gary L. Wade http://www.garywade.com

Re: Catalina scroll view issues

2019-12-14 Thread Gary L. Wade via Cocoa-dev
at a CoreText level? -- Gary L. Wade http://www.garywade.com/ > On Dec 14, 2019, at 6:17 AM, Redler Eyal via Cocoa-dev > wrote: > > Hi All, > > I'm getting reports from users complaining about a strange display issue on > Catalina with my app. > My app is a word-processor (not

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/ <http://www.garywade.com/> > On Nov 27, 2019, at 10:18 AM, Jeff Younker via Cocoa-dev > wrote: > > I am having some diff

Re: Future of Cocoa

2019-11-21 Thread Gary L. Wade via Cocoa-dev
to join a weekend hackathon to exercise their skills! For a fun one, do a search for Flickr SharkFeed. -- Gary L. Wade http://www.garywade.com/ > On Nov 21, 2019, at 6:02 PM, Jim Crate via Cocoa-dev > wrote: > > On Nov 21, 2019, at 5:43 PM, Pascal Bourguignon via Cocoa-d

Re: Future of Cocoa

2019-11-21 Thread Gary L. Wade via Cocoa-dev
with studying anything else important for one’s work. -- Gary L. Wade http://www.garywade.com/ > On Nov 21, 2019, at 12:21 PM, Pier Bover via Cocoa-dev > wrote: > > I won't respond each of you one by one but here are a couple of > observations. > > Metal is not a cross plat

Re: Future of Cocoa

2019-11-20 Thread Gary L. Wade via Cocoa-dev
case, scan through the online transcripts, which are searchable, and the keynotes of the presentations. Really, no one has any excuse. Either use what’s available and submit feedback when something isn’t clear or quit developing software. -- Gary L. Wade http:

Re: Future of Cocoa

2019-11-19 Thread Gary L. Wade via Cocoa-dev
e App Store <https://apps.apple.com/app/id640199958?pt=2003=da_news=8> -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

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

2019-11-14 Thread Gary L. Wade via Cocoa-dev
e mention Cocoa at all, just SwiftUI. Only slight mention of > Objective-C in a couple of video descriptions about Clang/LLVM and profiling. > That does seem like a useful prognostication. Thanks for the links! > > Casey McDermott > TurtleSoft.com > > On Thu, Nov 14, 201

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

2019-11-14 Thread Gary L. Wade via Cocoa-dev
ou use DeRez right, the output is very useful. In the terminal, type this command: man DeRez We’ve said this before, but now it’s definitely time to move on from this non-related topic. If you have Cocoa-related questions, please feel free to submit those. Otherwise, find another em

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

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
https://developer.apple.com/account/#/forums -- Gary L. Wade http://www.garywade.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.app

Re: Thoughts on Cocoa source code

2019-10-11 Thread Gary L. Wade via Cocoa-dev
and text selection of a menu item when opened. -- Gary L. Wade http://www.garywade.com/ > On Oct 11, 2019, at 10:10 AM, Turtle Creek Software > wrote: > > NSComboBox was almost perfect, but we needed it to only allow existing items. __

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

Re: Thoughts on Cocoa source code

2019-10-11 Thread Gary L. Wade via Cocoa-dev
don’t recall it right now. -- Gary L. Wade http://www.garywade.com/ > On Oct 11, 2019, at 8:00 AM, Turtle Creek Software via Cocoa-dev > wrote: > > I checked the GNUstep project, and it does seem decently clear and > well-commented. If Apple made it possible to see and st

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

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, a

Re: ARC

2019-08-24 Thread Gary L. Wade via Cocoa-dev
through that exercise, without cutting corners or assuming stuff, a solution usually presents itself. -- Gary L. Wade http://www.garywade.com/ > On Aug 24, 2019, at 4:44 AM, Turtle Creek Software via Cocoa-dev > wrote: > > Our app delegate class is not deallocated. The windo

Re: NSLog displays inconsistent format for NSDate

2019-08-20 Thread Gary L. Wade via Cocoa-dev
used: NSLog("%@: The date is now %@", Locale.current.identifier, NSDate()) For a predictable format in logs, I’d suggest using NSISO8601DateFormatter. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Aug 20, 2019, at 12:50 PM, Carl Hoefs via Cocoa-dev

Re: NSTextField "Discard Change"

2019-04-27 Thread Gary L. Wade
uld do it in a text field subclass, you’re probably better off managing that from its controller. By the time your sheet shows up, your text field is no longer performing any editing since it’s no longer the first responder. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/>

Re: Drawing boxes around each digit entered in UITextField (Number Pad)

2019-02-09 Thread Gary L. Wade
provide your own field editor that does the same thing, and drawing when not editing would follow the non-boxed method. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 9, 2019, at 12:36 PM, Devarshi Kulshreshtha > wrote: > > I am trying to draw boxes

Re: C++ pointer to Cocoa object

2018-09-07 Thread Gary L. Wade
You might also find WWDC 2018, Session 409, informative. -- Gary L. Wade http://www.garywade.com/ > On Sep 7, 2018, at 1:44 PM, Allan Odgaard wrote: > >> On 7 Sep 2018, at 19:46, Casey McDermott wrote: >> >> Problem is, with ARC turned on, the pointer is never nil, so

Re: Crashes inside CFStringDeallocate

2018-05-26 Thread Gary L. Wade
racter, and an embedded 16-bit zero within the bytes, even if it’s the last character in your array. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On May 26, 2018, at 3:18 AM, Vojtěch Meluzín <meldaproduct...@gmail.com> > wrote: > > Hard to say really,

Re: Persistent User Defaults

2018-04-24 Thread Gary L. Wade
Try defaults delete in the Terminal. -- Gary L. Wade http://www.garywade.com/ > On Apr 24, 2018, at 8:42 AM, Richard Charles <rcharles...@gmail.com> wrote: > > On macOS an applications user defaults are stored in a preference plist file > located in ~/Library/Preferences.

Re: Put UICollectionView within UITableViewCell

2018-03-09 Thread Gary L. Wade
I would suggest rethinking the table view enclosure and just use a collection view with headers and footers by way of the supplemental views. -- Gary L. Wade http://www.garywade.com/ > On Mar 9, 2018, at 8:00 AM, Glen Huang <hey...@gmail.com> wrote: > > Hi, > > I asked a q

Re: WatchKit Baby Apps

2018-03-02 Thread Gary L. Wade
to add that. -- Gary L. Wade http://www.garywade.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

Re: NSSecureCoding & NSAttributedString

2018-02-18 Thread Gary L. Wade
that attribute, it would draw an appropriate border around the entire run. I didn’t have a need to send that attributed string to other apps, but if I did, I would hope my custom attributes would be preserved round-trip provided the run was preserved. -- Gary L. Wade http://www.garywade.com

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Gary L. Wade
I would suggest addressing your concern at https://bugreport.apple.com/ -- Gary L. Wade http://www.garywade.com/ On Jan 24, 2018, at 11:05 AM, Jeremy Hughes <moon.rab...@virginmedia.com> wrote: >> I posted a related question in https://apple-dev.groups.io/g/xcode/ >> ("As

Re: Odd Behavior of UIText View in app compiled with a Base SDK of iOS 11

2017-10-07 Thread Gary L. Wade
been fixed. Try that out to see if anything jumps out at you. -- Gary L. Wade http://www.garywade.com/ > On Oct 6, 2017, at 1:33 PM, Michal L. Wright <m...@raccoonbend.com> wrote: > > Hi, > > I have an app (written in Objective C) that has a UIView that includes a > UIT

Re: [NSButton state] must by used from the main thread

2017-09-26 Thread Gary L. Wade
somewhere else that can be atomic and which decouples your background thread from the UI. -- Gary L. Wade http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: [OT] Question about writing documentation

2017-04-22 Thread Gary L. Wade
That’s a cool feature I didn’t know existed! Unfortunately, OGP7.3 crashes when I turn on either instance variables or methods; crash reports submitted. I’ll be looking forward to trying again on the next update. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> >

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Gary L. Wade
If you need lightweight drawing, you could use an NSTextFieldCell, which should give you some predictability. I don't recall the details, but there are a number of things that NSTextField does (and NSTextView) that aren't done with "raw" drawing (borders, margins, font resizing, etc.)

Re: A horizontal line rule within a NSAttributedString?

2017-02-18 Thread Gary L. Wade
Either try subclassing NSTextAttachment and overriding the methods in NSTextAttachmentContainer or use a subclass of NSTextAttachmentCell. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 18, 2017, at 3:26 PM, Daryle Walker <dary...@mac.com> w

Re: A horizontal line rule within a NSAttributedString?

2017-02-18 Thread Gary L. Wade
I would use NSTextAttachment, create an attributed string from it, and combine your three attributed strings into one. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 18, 2017, at 2:16 PM, Daryle Walker <dary...@mac.com> wrote: > > An idea for f

Re: Sometimes all my menus are disabled

2017-02-15 Thread Gary L. Wade
. There are other solutions and services that may be better, but for a single-user team wanting to be budget-conscious and keep your code private, that’s what I’d recommend. Once you have your repository in place, tracking errant changes by Xcode migrations is just as easy as looking at a diff. -- Gary L

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 13, 2017, at 12:54 PM, Andreas Falkenhahn <andr...@falkenhahn.com> > wrote: > > On 13.02.2017 at 19:49 Gary L. Wade wrote: > >> Your assignments for the File’s Owner and Application object

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
Your assignments for the File’s Owner and Application objects are messed up. First, clear the custom class values for these two objects. After that, connect the delegate outlet in the Application object to your embedded AppDelegate object. -- Gary L. Wade http://www.garywade.com/ <h

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
with that. If you can compare a working vs immediately non-working, that's even better. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Feb 13, 2017, at 8:58 AM, Andreas Falkenhahn <andr...@falkenhahn.com> > wrote: > >> On 13.02.2017 at 17:33 じょいすじょん wrote:

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Gary L. Wade
, though. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 12, 2017, at 12:57 PM, Rick Mann <rm...@latencyzero.com> wrote: > > I need my search bar to appear under the nav bar. We also have an extra view > outside and above the collection view. On top

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Gary L. Wade
In what way is its controller getting in the way? Those do a lot together. If used with a collection view, you might find my solution helps: https://whatweretheythinkingblog.wordpress.com/2016/11/19/effectively-using-uisearchcontroller-with-uicollectionview/ -- Gary L. Wade (Sent from my iPad

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Gary L. Wade
= DateFormatter.localizedString (from:date,dateStyle:.none,timeStyle:.short) If that doesn’t work, look at the comparable method in NSDateComponentsFormatter. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 3, 2017, at 4:12 PM, Sandor Szatmari <admin.szatmari@gmail.com> >

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Gary L. Wade
pport. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 3, 2017, at 1:02 PM, Sandor Szatmari <admin.szatmari@gmail.com> > wrote: > > Gary, > > On Jan 3, 2017, at 14:52, Gary L. Wade <garyw...@desisoftsystems.com > <

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Gary L. Wade
display defaults to what the selected region uses. Few people change things after that, although I am, preferring a four-digit year vs two-digit for the short date format. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 3, 2017, at 8:34 AM, Sandor

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
; self.iconSubtitleLabelLeading.constant = newIconSubtitleLabelLeadingConstant; [self.iconIndicator.superview layoutIfNeeded]; }]; } } -- Gary L. Wade http://www.garywade.com/ <h

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
it more attractive to grow the icon and compress the title in that animation, choosing a scale-to-fill option, when I determined there was an icon. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 14, 2016, at 2:52 PM, Doug Hill <cocoa...@breaqz.com> w

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
and the other to be the extra size needed to fill the gap. I also chose to animate the constant values, so the size-change is smooth to the user. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 14, 2016, at 2:19 PM, Doug Hill <cocoa...@breaqz.com> wrote:

Re: Control default color inconsistencies

2016-12-14 Thread Gary L. Wade
Set the background color of self.view to something other than black and your button and label will be more visible. I believe the color for your table view is a UIColor defined as a category in UITableView.h or close to there. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com

Re: Control default color inconsistencies

2016-12-14 Thread Gary L. Wade
doing that, try working through things in Interface Builder first so you get an idea of what you need to do. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 14, 2016, at 7:47 AM, Andreas Falkenhahn <andr...@falkenhahn.com> > wrote: > > I'm creating my GU

Re: NSTouchBar in Carbon

2016-12-12 Thread Gary L. Wade
to it and use that to call initWithWindowRef: on your Carbon window. That may be enough to tie into Cocoa’s responder chain; not sure how controls can be bridged from Carbon to Cocoa, but at least the NSWindow would be the best place to know how to configure a touch bar. -- Gary L. Wade http

Re: Drag UITableView up/down

2016-12-06 Thread Gary L. Wade
hidesBarsOnSwipe so check those out. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 6, 2016, at 11:38 AM, Eric E. Dolecki <edole...@gmail.com> wrote: > > I'm looking for a chunk of view controller code that allows for: > > A UITableView. You

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-03 Thread Gary L. Wade
and code-signed; no downloadable plugins are allowed. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 3, 2016, at 3:00 AM, Andreas Falkenhahn <andr...@falkenhahn.com> wrote: > >> On 03.12.2016 at 00:40 Jens Alfke wrote: >> >> dlopen is hardly undoc

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Gary L. Wade
and is supported. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 2, 2016, at 2:17 PM, Andreas Falkenhahn <andr...@falkenhahn.com> wrote: > > On 02.12.2016 at 22:55 Pascal Bourguignon wrote: > >> Yes, it’s “official”. >> I’ve read the documen

Re: Documentation Workflow

2016-12-02 Thread Gary L. Wade
I bet the documentation has gotten leaner since Apple's developers have been dog-fooding the Xcode feature, Add Documentation, available under the Editor:Structure men path, and only using what’s in there. Just kidding…but maybe not! -- Gary L. Wade http://www.garywade.com/ <h

Re: Where are the gears?

2016-11-30 Thread Gary L. Wade
That is a bummer that Apple has made so many reusable images available for macOS but not as many for iOS as the original poster wanted. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Nov 30, 2016, at 9:55 AM, Richard Charles <rcharles...@gmail.com> wrote:

Re: Flipped print previews

2016-11-21 Thread Gary L. Wade
as coloration options that might also help. You mentioned you broke on setNeedsDisplay. Try adding setNeedsDisplayInRect: and turn on a breakpoint for all classes, not just that one view. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Nov 21, 2016, at 1:13 PM, Jeff E

Re: Flipped print previews

2016-11-20 Thread Gary L. Wade
I remembered seeing something like that in an app that had been doing some things deep with the drawRect: call that was causing the view to become dirty again. I fixed it by getting rid of that code. Try looking for something like that first. -- Gary L. Wade (Sent from my iPhone) http

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-18 Thread Gary L. Wade
I have a thought. Do you have a binding somewhere on a property in NSUserDefaults? Maybe your document is getting synchronized to iCloud and/or getting autosaved very often? These are things I’ve seen that can cause uncharacteristically often updates. -- Gary L. Wade http://www.garywade.com

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-13 Thread Gary L. Wade
Write bugs for the ones where there's no non-deprecated method. I don't recall all the values, but there may be UNIX-level functions to do some things. And if there's no real way now, look up the info on the structures and set them by way of the xattr calls. -- Gary L. Wade (Sent from my iPad

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-13 Thread Gary L. Wade
What attributes in particular do you need to work with? In case you might be dealing with labels, those moved from the simple bitmask flag to separate values in their own extended attribute. Other values may have changed similarly but I haven't kept up with them. -- Gary L. Wade (Sent from my

Re: Where are the ICU Headers?

2016-10-06 Thread Gary L. Wade
across releases, or below an API layer, the interfaces would not be as much of an issue for most when using the current installed library. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Oct 6, 2016, at 5:23 AM, Alastair Houghton <alast...@alastairs-place.net> > wrote

Re: Where are the ICU Headers?

2016-10-06 Thread Gary L. Wade
it, but my management decided we should hard code the mappings. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Oct 6, 2016, at 1:22 AM, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: > > The Icu stuff (57.1) is included in macOS 12. > > There is: > /us

Re: PopUp menus in tables

2016-10-04 Thread Gary L. Wade
If you’re using a view-based table view (as all should be nowadays), and you have the popup button you clicked on, get the enclosing NSTableRowView and call rowForView: -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Oct 4, 2016, at 4:03 PM, Steve Mills <sjm

Re: SecStaticCodeCheckValidity fails when app is lauched from Terminal

2016-09-26 Thread Gary L. Wade
another way like the actual executable? -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Sep 26, 2016, at 2:44 AM, Markus Spoettl <ms_li...@shiftoption.com> wrote: > > I'm using SecStaticCodeCheckValidity() to self check the signature of my own >

Re: Passing param by reference then using within block throws exception

2016-09-22 Thread Gary L. Wade
Look at these two lines: >__block NSString* noFillMeIn; ... > *noFillMeIn = @"wow"; Unless the original code is correct, you've got mismatched pointers, and you should try turning on more warnings and reading what they say, as well as trying the analyzer.

Re: Maximum image size ?

2016-09-22 Thread Gary L. Wade
If you are dealing with truly astronomical image data, consider that "trying it yourself" may require multiple machines and/or multiple dedicated GPUs similar like how you see those multi-monitor displays shown at conferences and marketing displays. -- Gary L. Wade (Sent from my iP

Re: How to update UI from a background thread

2016-09-22 Thread Gary L. Wade
give you a clue what you can do, if anything. Use that, Instruments, and the Activity Monitor app if ran on a non-developer's machine. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 22, 2016, at 9:09 AM, Dave <d...@looktowindward.com> wrote: > > Ok, will

Re: Mysterious crash with NSTableView

2016-08-26 Thread Gary L. Wade
, this clearing should happen for you—I'm pretty sure the data source and delegate are weak, but I don't have the headers in front of me right now. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Aug 26, 2016, at 9:38 AM, Andreas Falkenhahn <andr...@falkenhahn.com>

Re: Mysterious crash with NSTableView

2016-08-26 Thread Gary L. Wade
You would not see this if you hid or removed the table view first since it would not need its data source or delegate then. Try going with ARC or at least use autorelease on your delegate/data source. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Aug 26, 2016, at 8:42

Re: Mysterious crash with NSTableView

2016-08-26 Thread Gary L. Wade
Try clearing your table view's data source and delegate before releasing their object. It appears the pointer gets reassigned to an NSRectSet before your table view completely goes away but after its delegate and data source have. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com

Re: GetNumEventsInQueue() for Cocoa

2016-08-20 Thread Gary L. Wade
. If you have a need to do polling of events and cannot do it with the current APIs available, write a radar up and possible open a tech support incident. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Aug 20, 2016, at 2:26 PM, Andreas Falkenhahn <andr...@fa

Re: GetNumEventsInQueue() for Cocoa

2016-08-20 Thread Gary L. Wade
cross-platform architecture. If the architecture you’re using is something well known, you might get some better advice by others who have used it and how they’ve done things the Cocoa way. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Aug 20, 2016, at 10:59 AM

Re: Resend: array = [NSArray new] or array = [NSArray array]?

2016-08-19 Thread Gary L. Wade
, but that's an implementation detail you as a user shouldn't be too concerned about. The biggest cause for concern is if you're writing this code in MRC vs ARC since you'd have to manage these memory points yourself. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Aug 16, 2016, a

Re: Emailing from a daemon process

2016-07-07 Thread Gary L. Wade
. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 7, 2016, at 11:01 AM, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote: >> The manufacturers are probably running their own SMTP servers, and the >> devices either talk to those directly, or (more likely)

Re: Property synthesis trouble - 32 vs 64 bit builds

2016-07-05 Thread Gary L. Wade
You might need to write some lower level stuff, but some of the things in there can be done, albeit differently. Apple knows I've submitted a number of bugs and incident reports to get codecs supported in later frameworks. Do the same. It may happen. -- Gary L. Wade (Sent from my iPhone) http

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
, this is the same design you would use for synchronous requests except for the placement of the completion block and timing of its execution. When I refer to requests, these can be as simple as some application-defined value and actual NSURL and NSURLSession objects not created until step 4/5. -- Gary L. Wade

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
Based on his desire to do this serially, he would need a serial queue, and he's using asynchronous requests, so succeeding calls from his completion handler with a simple array in queue pattern is simpler than shoehorning it all into dispatch queues. -- Gary L. Wade (Sent from my iPhone) http

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
That may work, too, but it sure sounds like an awfully heavy way to do it. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 28, 2016, at 2:16 PM, Peter Tomaselli <vast.gra...@gmail.com> wrote: > > In the past I’ve used NSOperation for this — wrap each requ

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
Try using a mutex on your array of requests, when adding and removing them, and only pull a request off the array when you're done with your completion handler or when you have nothing in progress such as when you first start. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
The simplest way to do what you're asking is to not send another request until your completion handler finishes. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 28, 2016, at 12:52 PM, Jim Adams <jim.ad...@sas.com> wrote: > > I have an application that has

Re: Swift 3 - Notification leaks

2016-06-18 Thread Gary L. Wade
Apple is carefully monitoring bugs for this, so file one. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 18, 2016, at 4:21 AM, Andreas Mayer <andr...@harmless.de> wrote: > > The really bad thing is, some were keeping old wi

Re: H.265/HEVC encoding and decoding in mac os x using AVFoundation?

2016-06-17 Thread Gary L. Wade
on Xcode 7 and Xcode 8 and check out Apple's dev forums for items under disclosure. If you have access to Apple's WWDC 2016 videos, see if one of the related sessions might help. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Jun 17, 2016, at 5:07 AM, Muthulingam Ammaiap

Re: Where are my bytes hiding?

2016-05-05 Thread Gary L. Wade
, this should suffice. There are wikis that go into greater detail. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 5, 2016, at 12:01 PM, Martin Wierschin <mar...@nisus.com> wrote: >> Those files are compressed by the filesystem. In HFS+/MacOS Extended that >> means

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Gary L. Wade
UTF-8> -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Apr 26, 2016, at 3:25 AM, Dave <d...@looktowindward.com> wrote: > > Hi, > > I’ve tried loads of different way of doing it but none of them work. Maybe > its because I’m not using Au

  1   2   3   4   >