Re: NSScreen.screens under multiple displays

2023-06-08 Thread Jeff Szuhay via Cocoa-dev
>resending from correct email address< You may have to go to the Quartz level to get the active display list with CGError CGGetOnlineDisplayList( uint32_t maxDisplays,

Re: Thoughts on Objective-C++

2019-11-13 Thread Jeff Szuhay via Cocoa-dev
You made a business decision and now you must live with that decision. Otherwise, this thread is really getting tiresome. > On Nov 13, 2019, at 4:28 PM, Turtle Creek Software via Cocoa-dev > wrote: > > blah blah blah ___ Cocoa-dev mailing list

Re: Best Xcode machine mid-2019?

2019-06-28 Thread Jeff Szuhay via Cocoa-dev
Compilation is largely an i/o-bound problem. Unless the projects you work on are hideously large and would benefit from parallel processing (splitting the i/o among several processors), your current machine is quite satisfactory. Try this: using your current system, create a 4GB disk

Re: How to clear macOS app bundle cache

2018-09-05 Thread Jeff Szuhay
Did you try clearing the defaults persistent domain in your code? Something like the following (the juicy bits are in red) : NSUserDefaults * myAppDefaults; myAppDefaults = [[NSUserDefaults alloc] initWithSuiteName: (NSString*) myAppBundleID ]; then, to clear: #if

Re: Is "-init" really needed?

2017-08-08 Thread Jeff Szuhay
> On Aug 8, 2017, at 10:12 AM, Steve Mills wrote: > > It's a term that's part of the language, so use it. I know what language I'm > typing in, so I'm not going to confuse [NSThing new] with "new > CPlusPlusClass". Even if I did lose my mind and not understand what I'm >

Re: Doubled Pixels

2017-06-23 Thread Jeff Szuhay
For a different reason, I’ve posted the most complete CGBitmapContext example I’ve seen anywhere (which is why I posted it). You can see it here http://www.blinddogsoftware.com/goodies/#DontSpillTheBits and customize to your needs. You can ignore the CGLayers, CGImage, and CIImage

Re: Current, preferred way to add help to your Mac app?

2017-04-07 Thread Jeff Szuhay
Nevermind. I found the “Apple Help Programming Guide.” My apologies for the noise. > On Apr 7, 2017, at 3:37 PM, Jeff Szuhay <j...@szuhay.org> wrote: > > Andrew Stone wrote this > <http://www.stone.com/The_Cocoa_Files/Help_On_The_Way_.html> > in 2001. Is

Current, preferred way to add help to your Mac app?

2017-04-07 Thread Jeff Szuhay
Andrew Stone wrote this in 2001. Is it still valid? What is the current, preferred way to add help to your Mac app? Thanks, Jeff Sz. QuarterTil2.com ___ Cocoa-dev mailing list

Re: Prioritizing drawing of the important stuff

2016-10-29 Thread Jeff Szuhay
Actually, there is. This sounds a lot like the resize logic built into the framework. In Apple’s “View Programming Guide” there is a section dedicated to “Drawing During Live Window Resizing” You already have the fast and slow methods for drawing so you can use them if you pay attention to

Re: Mysterious crash with NSTableView

2016-08-26 Thread Jeff Szuhay
> On Aug 26, 2016, at 8:44 PM, Sandor Szatmari > wrote: > >> >> However, in your case I wonder what the static analyzer in Xcode tells you >> about the bug you see? > > I believe Andreas mentioned he does not use Xcode as his product is cross > platform, but

Re: length of file from NSFileHandle?

2016-08-26 Thread Jeff Szuhay
> On Aug 26, 2016, at 8:19 PM, Graham Cox wrote: > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? > > I need to know because I have a

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 8:02 PM, Britt Durbrow > <bdurb...@rattlesnakehillsoftworks.com> wrote: > > >> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay <j...@szuhay.org> wrote: >> >> I draw my images (clocks) into a “reference” sized rectangle—for simplifi

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay <j...@szuhay.org> wrote: > > >> On Aug 24, 2016, at 10:37 AM, Jean-Daniel Dupas <mail...@xenonium.com >> <mailto:mail...@xenonium.com>> wrote: >> >>> Moreover, the performance will greatly d

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 10:37 AM, Jean-Daniel Dupas wrote: > >> Moreover, the performance will greatly depends the sampling algorithm you >> choose. CGImage provide a couple of algorithms with different tradeoff (see >> CGContextSetInterpolationQuality() and NSImage and

Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
important for me to know. TIA Jeff Szuhay a.k.a tickt...@quartertil2.com <mailto:t...@quartertil2.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

Re: Sprite Kit app won’t operate in foreground

2016-08-02 Thread Jeff Szuhay
Can your main window become key? In other words, accept inputs? > On Aug 2, 2016, at 5:18 AM, Charles Jenkins wrote: > > A few weeks ago I wrote about a demo app that seemed to expire—it would > work perfectly for a few weeks and then crash whenever opened. > > Carl Hoefs

Re: Properties: A question of style

2016-06-15 Thread Jeff Szuhay
Tuesday? Any close approximation of the title of his talk would be helpful. > On Jun 15, 2016, at 4:47 PM, dangerwillrobinsondan...@gmail.com wrote: > > Watch the Ali Ozer video from the other day at wwdc. > He covers this very topic. ___

Re: CIImage initWithCGLayer is deprecated in 10.11

2016-06-09 Thread Jeff Szuhay
> On Jun 9, 2016, at 4:20 AM, Graham Cox > wrote: > > Why do you draw into a CGLayer rather than a CGImage? For a couple reasons: • Because I draw my shapes into a CGLayer with Quartz2D. I’m not working with images on disk or from

CIImage initWithCGLayer is deprecated in 10.11

2016-06-09 Thread Jeff Szuhay
Ok. Maybe this was done for performance. Whatever. Here’s the thing: I draw into a layer, then I want to apply a CIFilter to that layer. With initWithCGLayer deprecated, I can’t for the life of me figure out how to use the existing APIs to do what I want. The sample code — FunHouse — uses the

Re: objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-13 Thread Jeff Szuhay
> On May 11, 2016, at 5:11 PM, Jeff Szuhay <j...@szuhay.org> wrote: >> On May 11, 2016, at 12:08 AM, Jens Alfke <j...@mooseyard.com> wrote: >>> On May 10, 2016, at 11:05 PM, Jeff Szuhay <j...@szuhay.org >>> <mailto:j...@szuhay.org>> wrote: &

Re: objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-11 Thread Jeff Szuhay
> On May 11, 2016, at 12:08 AM, Jens Alfke <j...@mooseyard.com> wrote: > > >> On May 10, 2016, at 11:05 PM, Jeff Szuhay <j...@szuhay.org >> <mailto:j...@szuhay.org>> wrote: >> >> Class Foo is a base class. It is subclassed in BundleA, Bundl

objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-11 Thread Jeff Szuhay
Class Foo is a base class. It is subclassed in BundleA, BundleB, … BundleZ. The runtime still throws that message, regardless. There are one or two methods implemented in the base class and not in the subclasses. You can see this effect if you download, build, and run Apple’s BundleLoader

Fwd: How to make an app launch on login?

2016-04-20 Thread Jeff Szuhay
012/07/03/the-launch-at-login-sandbox-project>/> This uses the SMLoginItemSetEnabled call in a separate process. I wish someone at Apple would step in here and provide a little direction on which is the best way for an app to launch _itself_ at login. > On Apr 19, 2016, at 2:43 PM,

Re: How to make an app launch on login?

2016-04-19 Thread Jeff Szuhay
Again, I jumped the gun. The preferred way seems to be through the use of launchd

Re: How to make an app launch on login?

2016-04-19 Thread Jeff Szuhay
I spoke too soon; yes, all of this is marked as “available but deprecated on 10.11”. I would hope that Apple would provide sample code to show the preferred new way to do this. > On Apr 19, 2016, at 2:29 PM, Jeff Szuhay <j...@szuhay.org> wrote: > > There was some discussion o

Re: How to make an app launch on login?

2016-04-19 Thread Jeff Szuhay
There was some discussion of this on stack overflow but one of the APIs there is deprecated: LSSharedFileListItemResolve. It’s 3rd parameter takes a pointer to a CFURLRef and that is now deprecated. Instead, use LSSharedFileListItemCopyResolveURL; basically the return value from this is what

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-07 Thread Jeff Szuhay
Last week, I filed a sample code bug #25499365 against the ButtonMadness sample code project. I’m not sure if that will be enough. > On Apr 7, 2016, at 1:26 PM, Sean McBride wrote: > > On Thu, 7 Apr 2016 15:36:51 -0400, Nivek Research said: > >> I have a number of