Re: NSPredicateEditorRowTemplate subviews layout

2025-05-17 Thread Steve Mills via Cocoa-dev
ethod? Or [pop setContentCompressionResistancePriority:NSLayoutPriorityDefaultHigh forOrientation:NSLayoutConstraintOrientationHorizontal] (or possibly NSLayoutPriorityRequired)? -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (

Re: Settings of screen saver not persistent - again

2025-04-19 Thread Steve Mills via Cocoa-dev
.runningFromSSTest) [NSException raise:@"BlahScreenSaverView" format:@"Kill legacyScreenSaver because it sucks and will keep running and won't remove our views."]; } } @end -- Steve Mills Drummer, Mac geek ___

Re: Settings of screen saver not persistent - again

2025-04-18 Thread Steve Mills via Cocoa-dev
ake sure legacyScreenSaver is not running in Activity Monitor. Quit/kill it if it is. 2. Open the System Prefs and change your screensaver's prefs. 3. Run it to see if the changes are kept. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list

Re: Settings of screen saver not persistent - again

2025-04-15 Thread Steve Mills via Cocoa-dev
ir previous life, before the wallpaper nonsense. /System/Library/ExtensionKit/Extensions/Hello.appex/Contents/MacOS/Hello -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Settings of screen saver not persistent - again

2025-04-13 Thread Steve Mills via Cocoa-dev
ch time. It's now up to 1.95G. My code to force quit it doesn't always work, because legacyScreenSaver is just weird. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How can I read settings of a screen saver plugin

2025-04-12 Thread Steve Mills via Cocoa-dev
t's a pain, but so is dealing with all the bugs Apple keeps introducing to legacyScreenSaver. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Settings of screen saver not persistent - again

2025-04-12 Thread Steve Mills via Cocoa-dev
didstop" notification, which I added an observer for on screensaver start, keeping a global count of how many instances were started and stopped via the notification. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: How to change settings of my screen saver on the command line

2025-03-26 Thread Steve Mills via Cocoa-dev
ing sudo, it can't find it. If I list the known domains, my screensaver is not listed. This is all likely because legacyscreensaver hides everything under its own Container. ~/Library/Containers/com.apple.ScreenSaver.Engine.legacyScreenSaver/Data/Library/Preferences/ByHost/com.your.domain.

Re: Screensavers under macOS 15

2024-10-02 Thread Steve Mills via Cocoa-dev
waking the screen. -- Steve Mills Drummer, Mac geek ___ 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/Unsubsc

Re: Screensavers under macOS 15

2024-09-20 Thread Steve Mills via Cocoa-dev
You should definitely submit a bug to Apple. You can reference FB13444225, which is my report of the bug that causes ScreenSaverViews to not be removed after the screensaver stops, and they keep running after the screensaver starts up again, so they keep multiplying. -- Steve Mills Drummer

Re: Screensavers under macOS 15

2024-09-20 Thread Steve Mills via Cocoa-dev
sooner instead of waiting. I was hoping they would have fixed legacyScreenSaver, or at least introduced a new framework we could base screensavers on. I don't want to use any of their goofy wallpapers that turn into screensavers. -- Steve Mills Drummer, Mac geek _

Re: Screen saver settings don't take effect (again) under Sonoma

2024-02-01 Thread Steve Mills via Cocoa-dev
ut in dozens of #ifs. Put them on each method entrance and exit, log display names, log user defaults, everything. Then you can filter on your screensaver’s name in Console, start the log in Console, then start your screensaver, stop it, stop logging, and see wh

Re: Security-scoped bookmark and screensaver

2024-01-03 Thread Steve Mills via Cocoa-dev
them for external devices? You also didn’t say if you tried to duplicate the user problem by using your own external drive. If you can, then you need to find the work-around. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Screen saver settings don't take effect (again) under Sonoma

2023-10-12 Thread Steve Mills via Cocoa-dev
e you sure it's the same every time for each screen? Also, you *are* using the correct NSUserDefaults object, yes? NSUserDefaults* defaults = [ScreenSaverDefaults defaultsForModuleWithName:@"com.yourcompany.yourscreensaver"]; -- Steve Mills Drummer, Mac geek _

Re: Screensaver under 13.3 using multiple monitors appears funny

2023-04-22 Thread Steve Mills via Cocoa-dev
Yes, Apple broke legacy screensavers when multiple monitors are present, even some of their own screensavers. We just have to wait for them to fix it. It's been reported, and I've heard that they are aware. https://discussions.apple.com/thread/254745941 Stev

Re: setting Finder search input

2022-12-13 Thread Steve Mills via Cocoa-dev
s like this is not > exposed at all. Is it not enough to use NSWorkspace’s showSearchResultsForQueryString? Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-12-13 Thread Steve Mills via Cocoa-dev
s inside System Prefs or as a fullscreen screensaver. Maybe you *should* be, because the user can easily drag the System Prefs window to a different screen than the one it started on, which will screw up whatever you’re doing. Steve via iPad ___ Coco

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-12-11 Thread Steve Mills via Cocoa-dev
I mentioned somewhere in one of my replies that you know when it’s being run in the System Prefs preview because isPreview is passed to the main entry point. Steve via iPad > On Dec 11, 2022, at 14:56, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks again for the responses. A

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-11-17 Thread Steve Mills via Cocoa-dev
> On Nov 17, 2022, at 16:11, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks a lot for your quick responses! > > I would like to understand what you are saying and what is going on, so > please bear with me. > > So, Steve, if I understand correctly, you sug

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-11-17 Thread Steve Mills via Cocoa-dev
" If a screensaver window is not onscreen, there’s no screen to save, so it wouldn’t matter. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-11-17 Thread Steve Mills via Cocoa-dev
zero-based screen index. 0 is always the main screen. Steve via iPad ___ 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

Re: Screensaver Options under macOS 13 (Ventura) doesn't work

2022-11-09 Thread Steve Mills via Cocoa-dev
ery file you’ve changed since you last ran under the OS that’s having the problem. Steve via iPad ___ 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 coco

Re: Auto-layout, Forcing a top-level view to hug its contents

2022-11-05 Thread Steve Christensen via Cocoa-dev
t;> On Nov 4, 2022, at 23:05, Steve Christensen via Cocoa-dev >> wrote: >> >> The view hierarchy doesn’t go through a layout pass until after it is added >> to a live view or window. At awakeFromNib time it’s still essentially a >> snapshot of the layout in the n

Re: Auto-layout, Forcing a top-level view to hug its contents

2022-11-04 Thread Steve Christensen via Cocoa-dev
The view hierarchy doesn’t go through a layout pass until after it is added to a live view or window. At awakeFromNib time it’s still essentially a snapshot of the layout in the nib since it hasn’t yet been inserted into the “context” that will allow the layout engine to determine how big all th

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

2022-08-16 Thread Steve Christensen via Cocoa-dev
(scheduling work) and focus on your part of the task (performing the work). Steve > On Aug 16, 2022, at 8:41 AM, Gabriel Zachmann wrote: > > That is a good idea. Thanks a lot! > > Maybe, I can turn this into more fine-grained, dynamic load balancing (or > latency hiding), as follows:

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

2022-08-16 Thread Steve Christensen via Cocoa-dev
dates_and_times array because modifying it is not thread-safe. One quick way is to create a NSLock and lock it around the array update: [theLock lock]; dates_and_times[index] = iso_date; [theLock unlock]; Anyway, another way to look at the process. Steve > On Aug 14, 2022, at 2:22 PM, Gabr

Re: Special question about NSOpenPanel

2021-05-30 Thread Steve Mills via Cocoa-dev
? No, you can’t do anything other than submit the problem to Apple and hope they do something about it. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Steve Mykytyn via Cocoa-dev
You're creating your own problem here. If you are controlling what the configuration plist is, make it a dictionary at the top level with three keys and entries: idString - something that confirms to you that this is one of yours array - the array you want in some cases dictionary - the dictionar

Tracking source of recommendation

2021-04-22 Thread Steve Mykytyn via Cocoa-dev
Glad to see this list showing a little life, so I thought I would ask a question. I know how to make a link that app users can send to their friends as email/message/post to take them to the app on the App Store. What I would like to do is associate the new app user upon first launch with the use

Re: Several different NSUserDefaults in the same app?

2021-04-04 Thread Steve Mills via Cocoa-dev
> On Apr 4, 2021, at 10:11, Richard Charles via Cocoa-dev > wrote: > > Why does Apple cache the defaults, what are the positive benefits? I have > only ever been infuriated with this process during development. For the same reason as any cache; speed and efficiency.

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Steve Mills via Cocoa-dev
tensions on NSUserDefaults, which would do all this for you. Steve via iPad ___ 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

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Steve Mills via Cocoa-dev
sy part and you can make smoother calls: -(NSInteger) integerForKey:(NSString*)key forScreen:(NSInteger)screen { NSDictionary* dict = [self objectForKey:[NSString stringWithFormat:@“screen %ld”, screen]]; return [dict[key] integerValue]; } And of course the oppos

UITableViewHeaderFooter frames?

2020-08-11 Thread Steve Mykytyn via Cocoa-dev
I would like to get the frame of displayed UITableViewHeaderFooter views, but unfortunately [self.tableView.delegate tableView:self.tableView viewForHeaderInSection:i] returns the correct UITableViewHeaderFooter based on its textLabel, but the frame is all zeroes: Printing description of header:

Re: Points vs pixels in a bash script

2020-06-08 Thread Steve Christensen via Cocoa-dev
I don’t have an answer for your question, and I know that this doesn’t actually answer it below, but it may still provide some info to help you move forward. The windowing system is always working in points from a coordinates point of view. So window.frame and view.frame are in points, not pixel

Re: Relieving memory pressure

2020-06-07 Thread Steve Christensen via Cocoa-dev
For slide shows that I’ve seen, they typically display each image for several seconds at a time. If that’s the case, why can’t you just load the next image from disk on a background queue while the current image is being displayed and not have to worry about memory usage needed to cache multiple

Re: NSPanel / NSTextView in Dark Mode

2020-06-05 Thread Steve Mills via Cocoa-dev
? Make sure the text color is set to a named color such as Label Color instead of Black. If the text view doesn't contain text in the xib, it might not remember the color. You might need to set the text color in code. Just set it to NSColor.labelColor

Re: Curious bug in oPanel under Mojave in screensaver

2020-05-28 Thread Steve Mills via Cocoa-dev
get oPanel.URL. Choosing files/folders was mostly broken in some versions of 10.14. I'm surprised you could choose any folder at all. The behavior mine had was that it wouldn't return *any* folder. -- Steve Mills Drummer, Mac geek ___ Coco

Re: Is CGImage... thread-safe?

2020-05-27 Thread Steve Christensen via Cocoa-dev
> On May 27, 2020, at 3:03 PM, Steve Mills via Cocoa-dev > wrote: > >> I can't recall/reproduce, but it was definitely *inside* >> CGImageSourceCreateThumbnailAtIndex(). >> >> If there is no image a tinder 0, shouldn't it just return NULL graceful

Re: Is CGImage... thread-safe?

2020-05-27 Thread Steve Mills via Cocoa-dev
bounds. You should be calling CGImageSourceGetCount first to make sure there’s an image at 0. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

Re: Is CGImage... thread-safe?

2020-05-26 Thread Steve Mills via Cocoa-dev
rom any thread. Are you sure the image source even has an image at index 0? Not all do. What's the crashed stack look like? -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Concurrent loading of images ?

2020-05-09 Thread Steve Mills via Cocoa-dev
e handling the image manipulation to resize it to something that lets the main drawing thread work more efficiently. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: Concurrent loading of images ?

2020-05-09 Thread Steve Mills via Cocoa-dev
efficient. Probably not, but it seems like some parts of the various Mac image frameworks do a better job of scaling than others. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Minimizing my app kills timer ?

2020-05-08 Thread Steve Mills via Cocoa-dev
On May 8, 2020, at 12:50:23, Alex Zavatone wrote: > > Oh Steve, which version of MacOS are you seeing this on? What? I'm not the OP of this thread. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Xcode Build Location

2020-05-08 Thread Steve Mills via Cocoa-dev
really be in the xcode-users list, or better yet in the newer xcode list at apple-dev.groups.io. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Cocoa-dev Digest, Vol 17, Issue 62

2020-05-07 Thread Steve Mills via Cocoa-dev
t in an environment it wasn't designed to run in. I'm suggesting you not use ScreenSaverView. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Minimizing my app kills timer ?

2020-05-05 Thread Steve Mills via Cocoa-dev
On May 5, 2020, at 15:19:15, Gabriel Zachmann via Cocoa-dev wrote: > > Well, in my own -startAnimation, I do > [super startAnimation]; Which could be doing all sorts of things that assume it's running in a known screensaver environment. -- Steve Mills Dru

Re: Minimizing my app kills timer ?

2020-05-04 Thread Steve Mills via Cocoa-dev
nimation or stopAnimation methods? Or do you override those and never call the base class? In the end, you'd be better off just using your own mix-in class for doing your own animation. If you still need to build a real screensaver, call your mix-in class me

Re: Minimizing my app kills timer ?

2020-05-04 Thread Steve Mills via Cocoa-dev
creensaver and your app, and do the actual drawing in that class. It will be called by animateOneFrame in the screensaver and by what animation engine you come up with in your app. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (C

Re: Minimizing my app kills timer ?

2020-05-02 Thread Steve Mills via Cocoa-dev
> On May 2, 2020, at 09:15, Gabriel Zachmann via Cocoa-dev > wrote: > > I've got an app that makes heavy use of ScreenSaverView (i.e., creates an > instance of a subclass). ScreenSaverView is for screensavers, not apps. It’s behavior in an app is not guaranteed to w

Re: NSTimer +timerWithTimeInterval:

2020-04-29 Thread Steve Mills via Cocoa-dev
repeats:YES]; >[[NSRunLoop mainRunLoop] addTimer:newTimer > forMode:NSRunLoopCommonModes]; Sounds like multiple timers are being installed. Set a breakpoint that logs when hit. -- Steve Mills Drummer, Mac geek

Code signing problem in one project...

2020-04-26 Thread Steve Mykytyn via Cocoa-dev
I'm automatically managing code signing on all my Xcode projects. Just today, one started refusing to validate / distribute, claiming it was missing a private key. All the other projects continue to build just fine. Tried restarting Xcode, turned automatic signing on and off, deleted derived dat

Re: Open a panel in secondary thread?

2020-03-22 Thread Steve Mills via Cocoa-dev
uffice. > > if ( [NSThread isMainThread] ) > // call code directly > else > // call dispatch_sync(…) Right. That's standard practice. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Open a panel in secondary thread?

2020-03-22 Thread Steve Mills via Cocoa-dev
> On Mar 22, 2020, at 15:38, Rob Petrovec via Cocoa-dev > wrote: > > I would not do this. It is widely documented that AppKit API that produce > UI elements, like NSOpenPanel, are _not_ thread safe. The code shown *is* threadsafe. It’s calling it on the main thread.

Re: Sharing NIB/XIB between different apps?

2020-03-06 Thread Steve Mills via Cocoa-dev
ally" in my standalone app? The same way you load and show any window. You could add a custom view to your app’s window, then load the shared view controller from its nib and add it to the custom view. Look for Apple examples/docs for loading nib

Re: Getting rid of "cannot check for malicious software"

2020-03-05 Thread Steve Mills via Cocoa-dev
tall it manually in /Library/Screen Savers or ~/Library/Screen Savers. -- Steve Mills Drummer, Mac geek ___ 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: Embedded binary is not signed with the same certificate as the parent app

2020-03-03 Thread Steve Mills via Cocoa-dev
cause this weird error? Because it’s the wrong thing to do. Steve via iPhone ___ 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.appl

Re: Confusion about screen resolution

2020-02-22 Thread Steve Mills via Cocoa-dev
le. 10.12 or 10.13 maybe? I can’t remember for sure. They all blur together. It makes sense to default to a size that’s usable for most users, And if high res screens still look great at <2x, then there’s no reason why fractional resolutions shouldn’t be

Re: Still problems accessing files from my screensaver

2020-02-18 Thread Steve Mills via Cocoa-dev
's beyond your control. Just create the SSB from the NSURL, and store the NSData in prefs like you would any other object. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Still problems accessing files from my screensaver

2020-02-18 Thread Steve Mills via Cocoa-dev
run, when you resolve the SSB and startUsingSecurityS opedBookmark hor whatever that method is), the permission will be reinstated at that time. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: More fun with CGImageSourceCreateWithURL

2020-02-17 Thread Steve Mills via Cocoa-dev
es)? Do you save URLs in prefs? If so, do you store security scoped bookmarks, then resolve them on load, and have balanced calls to startAccessingSecurityScopedResource and stopAccessingSecurityScopedResource? Have you watched the console to see if any other info is being reported (filter on &q

Re: Questions about sandboxing under Catalina

2020-01-10 Thread Steve Mills via Cocoa-dev
On Jan 10, 2020, at 08:41, Gabriel Zachmann via Cocoa-dev wrote: > > > Follow-up question: is there a way to do that for screensavers? That’s what happens when you go through NSOpenPanel and the user chooses a folder. Read that document that 2 of us have suggested. Steve

Re: Questions about sandboxing under Catalina

2020-01-10 Thread Steve Mills via Cocoa-dev
ptual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html Then look for examples of using: bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: and startAccessingSecurityScopedResource stopAccessingSecurityScopedResource The last tw

Re: Questions about sandboxing under Catalina

2020-01-08 Thread Steve Mills via Cocoa-dev
27;s the actual path that sandboxing will use. But if Apple does away with the legacy screensaver in the future, who knows if they'll automatically transfer files stored by 3rd party screensavers, or if they'll just start fresh. -- Steve Mills Drummer, Mac geek _

Re: NSWorkspace notifications related to time change

2019-12-18 Thread Steve Mills via Cocoa-dev
different header, one related to time; NSDate.h, where you’ll find NSSystemClockDidChangeNotification. Steve via iPhone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Future of Cocoa #2

2019-12-10 Thread Steve Mills via Cocoa-dev
> On Dec 10, 2019, at 11:56, Turtle Creek Software via Cocoa-dev > wrote: tl;dr Oh god NOOO! Steve via iPhone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Future of Cocoa

2019-11-21 Thread Steve Mills via Cocoa-dev
Please kill this thread. We're all sick of the constant notifications that turn out to only be this crap. Argue somewhere else. This is for development questions and getting real help. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing

Re: Future of Cocoa

2019-11-19 Thread Steve Mills via Cocoa-dev
You should use an external poll site for this rather than filling the list with yet another thread full of discussions and arguments. Steve via iPhone > On Nov 19, 2019, at 10:42, Turtle Creek Software via Cocoa-dev > wrote: > > Before I email comments to Apple, it would help

Re: Swift -> Obj-C: return __kindof Something

2019-11-11 Thread Steve Christensen via Cocoa-dev
;> On Nov 11, 2019, at 15:07 , Steve Christensen via Cocoa-dev >> mailto:cocoa-dev@lists.apple.com>> wrote: >> >> Some existing Obj-C methods are of the form: >> >> + (nullable __kindof NSManagedObject) someFooThing; >> >> Right now I have

Swift -> Obj-C: return __kindof Something

2019-11-11 Thread Steve Christensen via Cocoa-dev
run across this. I haven’t found anything yet, but I don’t know if that’s due to poor search terms, or because someone more experienced with the process would say, “well, of course you can’t do that”. Any help? Thanks, Steve ___ Cocoa-dev mailing

On Demand Resource Trouble in Xcode 11 / iOS 13

2019-10-18 Thread Steve Mykytyn via Cocoa-dev
I'm having a problem with ODR in Xcode 11. Worked fine in Xcode 10 / iOS 12, both device and simulator. 1. I have the asset catalog in the main bundle 2. I have the Build Setting set to YES for Embed Asset Packs in Product Bundle 3. I can see that the assets are correctly copied into the bundle. 4

Re: Displaying an "album of images" in iOS

2019-09-19 Thread Steve Mills via Cocoa-dev
deas? You could use a collection view if you just want a grid of thumbnails. If you want that coverflow sort of thing, Apple doesn’t supply a class for that these days, but there are many 3rd party implementations you could check out. Just search for “i

Re: Why is / a metachar in regular expressions ?

2019-09-18 Thread Steve Mills via Cocoa-dev
On Sep 18, 2019, at 16:50:39, Rick Mann via Cocoa-dev wrote: > > Yeah, I'm inclined to think it's an error in the docs. If you look at the input expression in this great site, you'll see 2 /'s as part of it. They mark the beginning and the end (before flags). ht

Re: Screensaver icon ?

2019-09-17 Thread Steve Mills via Cocoa-dev
n it asks which targets it should be added to. You just want the file as-is, not packaged up in an assets wrapper. Steve via iPhone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: CABasicAnimation does not animate bounds.origin of a layer

2019-09-14 Thread Steve Christensen via Cocoa-dev
First guess would be not to explicitly set -anchorPosition. It defaults to (0.5, 0.5), which refers to the middle of the bounds, and transforms (like scaling) are applied relative to that position. > On Sep 14, 2019, at 6:25 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Maybe, I haven't un

Re: Hide badge of NSDraggingSession

2019-07-25 Thread Steve Mills via Cocoa-dev
s a jpg file and the other is a text file, but it only wants images, so it sets it to 1, but then if the mouse moves over some other app or destination that wants all files, it would change back to 2. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mail

Re: Hide badge of NSDraggingSession

2019-07-25 Thread Steve Mills via Cocoa-dev
add a single item using a custom NSPasteboardWriting class and supply your own image. It would hold the multiple items and write them. -- Steve Mills Drummer, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Hide badge of NSDraggingSession

2019-07-25 Thread Steve Mills via Cocoa-dev
a > badge displayed. Use the single image methods instead of adding multiple items. Steve via iPad ___ 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: Best Xcode machine mid-2019?

2019-07-01 Thread Steve Mykytyn via Cocoa-dev
The framework I'm building is written in Objective-C. I'm waiting for Swift to stabilize... Looking at Activity Monitor during the build, all four CPU cores are utilized symmetrically, the four hyper-threads somewhat less. The disk IO doesn't look like it's a bottleneck either. It does seem to

Re: Best Xcode machine mid-2019?

2019-06-29 Thread Steve Mykytyn via Cocoa-dev
time, great. > If not, just keep > on building great apps. > > > On Jun 28, 2019, at 11:02 AM, Steve Mykytyn via Cocoa-dev < > cocoa-dev@lists.apple.com> wrote: > > My main Xcode machine is a late 2013 27-inch iMac, 24GB RAM, 3.5 GHz Core > i7 with 500GB SSD. >

Best Xcode machine mid-2019?

2019-06-28 Thread Steve Mykytyn via Cocoa-dev
My main Xcode machine is a late 2013 27-inch iMac, 24GB RAM, 3.5 GHz Core i7 with 500GB SSD. It works fine, but I'm wondering if an iMac Pro or a top-of-the-line 2019 iMac would be a life-changing experience. Or just, "that's nice." The Geekbench numbers are somewhat informative, but hoping for

Re: Is the list alive?

2019-05-29 Thread Steve Mills via Cocoa-dev
erior dev forums.developer.apple.com. -- Steve Mills Drummer, Mac geek ___ 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.

Re: NSManagedObject.managedObjectContext is nil???

2019-03-28 Thread Steve Christensen
Is it possible that the entity is retained but has been deleted from the MOC? I vaguely recall seeing this myself at one point in the dim past. > On Mar 27, 2019, at 1:18 PM, Rick Mann wrote: > > I can't tell. I don't believe I have any unreferenced MOCs. > >> On Mar 27, 2019, at 13:08 , Dave

Re: My eyes are failing me.

2019-02-22 Thread Steve Christensen
Alex, is there any reason you couldn’t have used one of these? [self.sharedData.webServicesURL URLByAppendingPathComponent:@"login"] [self.sharedData.webServicesURL URLByAppendingPathComponent:@"login" isDirectory:{YES|NO}] > On Feb 22, 2019, at 9:40 AM, Alex Zavatone wrote: > > There are 2 p

Re: Diagnosing memory problems

2018-11-27 Thread Steve Mills
ked out the right way. Is the “data entry field” loaded separately from a nib, and is the controller or owner actually owned by anything? Thanks also a common mistake. It’s common to strong assign the controller to the window, doc, or app delegate, whichever thing actually instantiated it, so i

Re: Custom keyboard with search bar not behaving

2018-08-20 Thread Steve Mills
he search bar. It seems like the UIInputViewController's textDocumentProxy isn't handling the change in input views properly. Steve via iPhone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Custom keyboard with search bar not behaving

2018-08-20 Thread Steve Mills
7;s Gboard. Maybe I need to use a fake search bar so the text input chain never gets disturbed? BTW, I've only tested from the Simulator available on my work Mac, which is still maddeningly stuck on macOS 10.10. -- Steve Mills Drummer, Mac geek ___

Re: Carbon -> Cocoa

2018-08-16 Thread Steve Mills
few major OS versions ago. I'll just say it's not a fun process, especially when it's this many years after the "Carbon is dead" announcement. My choice would be to do it as a rewrite. -- Steve Mills Drummer, Mac geek ___

Is sandboxing doing some weird caching of alias files?

2018-07-20 Thread Steve Mills
file: -Original field in Get Info window -Preview in Get Info window -QuickLook -Show Original Is there some Cocoa method I can call to force Finder to kick its cache in the butt? If not, I'll just report this horrible bug. -- Steve Mills Drummer, Mac geek

Re: Deleting files extremely slow since OSX High sierra

2018-04-25 Thread Steve Mills
On Apr 25, 2018, at 10:45:47, David Young wrote: > > This hateful stuff doesn't really belong on this list, does it? It wasn't hateful, just a further illustration of how he doesn't like change or want to use modern conveniences. -- Steve Mi

Re: Deleting files extremely slow since OSX High sierra

2018-04-25 Thread Steve Mills
des, not to mention typing period period period instead of option-;. -- Steve Mills Drummer, Mac geek ___ 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: Deleting files extremely slow since OSX High sierra

2018-04-25 Thread Steve Mills
is to buy fuel when every station sells gasoline. -- Steve Mills Drummer, Mac geek ___ 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)

Re: Deleting files extremely slow since OSX High sierra

2018-04-23 Thread Steve Mills
ffecting the OS? > Wouldn’t be the first time that has happened. Oh, it's the file system. > Have any of you filed bug reports about the issues you are seeing, including > but not limited to a sysdiagnose, spindump, Instruments System Trace taken > _while_ the slowness was occurring.

Re: Deleting files extremely slow since OSX High sierra

2018-04-22 Thread Steve Mills
worse and worse as the days go on. My thought is the new file system format on my SSD is still full of problems. After all, everything about the format is slower in general. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: assertion failure

2018-04-07 Thread Steve Christensen
It's not uncommon to have a method throw an exception when you make a programming error so that you get immediate feedback. Not knowing offhand which method(s) were called, my guess would be that they're designed to always succeed if you specify the correct parameter values, so the assertion is

Re: Using NSFetchedResultsController with many-to-many relationship

2018-03-10 Thread Steve Christensen
ew.performBatchUpdates( { tableView.reloadRows(at: cellsToReload, with: .automatic) }, completion: nil) } } ... Steve > On Mar 10, 2018, at 12:47 AM, Glen Huang wrote: > > Hi, > > I have two models: Person and Club. They have a

Re: Icon radio buttons

2018-01-24 Thread Steve Christensen
You could manage the button state yourself without a lot of code. @IBOutlet var button1: NSButton// tag = 0 ... @IBOutlet var buttonN: NSButton// tag = N - 1 private var selectedPaletteButtonIndex: Int = 0 private var paletteButtons: [NSButton] override func viewDidLoad() { super.vi

Re: Deciphering an error message on an iOS UITextField subclass.

2018-01-17 Thread Steve Christensen
> On Jan 17, 2018, at 5:24 PM, Alex Zavatone wrote: > > po [cell.dataField isKindOfClass:[UITextField class]] Have you tried "print [cell.dataField isKindOfClass:[UITextField class]]", instead, possibly casting the result to bool? The debugger may be getting confused when you're asking it to

Re: Background fetch is never called

2017-12-13 Thread Steve Christensen
d execution > time. > On Dec 13, 2017, at 1:31 AM, Viacheslav Karamov wrote: > > Yes, I confirm that > > > 12.12.17 23:16, Steve Christensen wrote: >> Did you confirm that there is a UIBackgroundModes key in your app's >> Info.plist? >> >> UIB

Re: Background fetch is never called

2017-12-12 Thread Steve Christensen
Did you confirm that there is a UIBackgroundModes key in your app's Info.plist? UIBackgroundModes fetch > On Dec 12, 2017, at 6:23 AM, Viacheslav Karamov wrote: > > I have configured Background Fetch at the "Capabilities" tab in my Project's > settings. Then added to the App delega

Re: Avoiding color transformations in PNG/UIImage/CGImage ops?

2017-11-17 Thread Steve Christensen
ple.com/library/content/documentation/Cocoa/Conceptual/DrawColor/Tasks/UsingColorSpaces.html <https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/DrawColor/Tasks/UsingColorSpaces.html>) Steve > On Nov 16, 2017, at 6:31 PM, Rick Mann wrote: > > I'm trying

  1   2   3   4   5   6   7   8   9   10   >