Re: How to reposition subviews without Auto Layout

2020-10-17 Thread via Cocoa-dev
> On Oct 17, 2020, at 9:57 PM, Andreas Falkenhahn via Cocoa-dev > wrote: > > Hi, > > I have an NSView that I set as the content view of my NSWindow. The NSView > has three subviews. Where should I reposition and resize those three subviews > when the NSWindow size changes? > > I see

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread via Cocoa-dev
> On Jun 29, 2020, at 15:24, Sandor Szatmari > wrote: > > > >> On Jun 28, 2020, at 22:29, じょいすじょん via Cocoa-dev >> wrote: >> >> One way to do this is with the command line tool: >> caffeinate >> >> You could run a background task

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread via Cocoa-dev
One way to do this is with the command line tool: caffeinate You could run a background task that starts it with something like caffeinate -dimsu You can probably also find its source code on opensource.apple.com to understand what it does and how. Like here is a version:

Re: NSDatePicker display format

2020-01-21 Thread via Cocoa-dev
Have you tried any of the properties like calendar (NSCalendar), locale (NSLocale) and timeZone (NSTimeZone) ? Those are what drive much of NSDateFormatter… By default they probably inherit from the current system settings or whatever the app inherits at launch. Date, time and number formats are

Re: Hide badge of NSDraggingSession

2019-07-25 Thread via Cocoa-dev
> On Jul 26, 2019, at 10:50, Dragan Milić via Cocoa-dev > wrote: > >> pet 26.07.2019., at 03.08, Rob Petrovec wrote: >> >> I would not recommend using those deprecated API. They are not long for >> this world. With that said, I don’t have a better solution. > > Yeah, I’d like ti avoid

Re: Hide badge of NSDraggingSession

2019-07-25 Thread via Cocoa-dev
> On Jul 26, 2019, at 12:19, Steve Mills via Cocoa-dev > wrote: > > On Jul 25, 2019, at 20:50:18, Dragan Milić via Cocoa-dev > wrote: >> >> The thing is, in that dragging session I have to supply a list of URLs, so >> that other applications expecting URLs (like Finder, for example) would