Re: Unhidden subview outside of superview's bounds

2024-02-10 Thread Dragan Milić via Cocoa-dev
> On Sat 10.02.2024, at 11.16, Dragan Milić via Cocoa-dev wrote: > > Hello all, > > I’ve finally changed my main development platform to macOS 14 Sonoma and > almost immediately have I encountered something I consider being a bug. I > searched for similar issues, but now

Unhidden subview outside of superview's bounds

2024-02-10 Thread Dragan Milić via Cocoa-dev
Hello all, I’ve finally changed my main development platform to macOS 14 Sonoma and almost immediately have I encountered something I consider being a bug. I searched for similar issues, but nowhere have I found any relevant information or help. The issue is rather funny; if you have a subview

NSFileCoordinator woes

2023-11-03 Thread Dragan Milić via Cocoa-dev
Hi all, I’ve never used NSFileCoordinator class, simply because I haven’t had any need for it until now. And now that I’m about to need it rather soon, I’m trying to get a grasp on it, but it does’t go very well so far. Even though the documentation reads pretty clear, I don’t seem to get it

NSFileCoordinator operations on a directory (and it's content)

2023-07-20 Thread Dragan Milić via Cocoa-dev
Since my question is about specific Cocoa API, but it also involves file system operations, I don't know it the appropriate place to ask is here or Filesystem-dev list, so I'll ask on both (and hope nobody will mind it :-)) I have an application, which "messes" with files in different ways. It

NSTableView dragging source image

2023-03-21 Thread Dragan Milić via Cocoa-dev
Hi all, I have a simple problem, but I’m not able to solve it in an easy way, so I suspect I’m doing something wrong. I have a simple view-based NSTableView, which is a dragging source. The data being dragged are provided to the pasteboard using the standard data source method - [NSObject

Re: Set focus on NSTextField in an NSMenuItem

2022-10-21 Thread Dragan Milić via Cocoa-dev
> On 20. 10. 2022., at 01:22, Sandor Szatmari wrote: > > I have a status item and in order to get it to show I have to call this in my > code that orders in the view/window > >[[NSApplication sharedApplication] activateIgnoringOtherApps:YES] > > I have no idea if this is the best way to

Re: Set focus on NSTextField in an NSMenuItem

2022-10-19 Thread Dragan Milić via Cocoa-dev
> On 19. 10. 2022., at 03:52, Eric Schlegel wrote: > > > I can tell you that the Help menu does itself use makeFirstResponder: on the > text view… Eric, thanks for detailed explanation and willingness to help. Your message triggered me to play with the issue a bit more and I figured out what

Re: Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Dragan Milić via Cocoa-dev
> On 18. 10. 2022., at 19:11, Alex Zavatone wrote: > > I am speaking from an iOS perspective but, is there something like > makeFirstResponder? Yes, there is. It should be sent to an NSWindow instance and I tried to do that in -[NSMenuDelegate menuNeedsUpdate:], or -[NSMenuDelegate

Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Dragan Milić via Cocoa-dev
Hi all, I’m developing a tiny application, which has an NSStatusItem instance with a menu. One for the menu items of the menu has a custom view, which is either an NSTextField instance, or in can even be an NSView instance containing the NSTextField instance (the latter approach enables me to

Re: Incompatible CoreData version crash

2021-08-04 Thread Dragan Milić via Cocoa-dev
> On 4 Aug 2021, at 12:30, RhapSoft Feedback wrote: > > Hi Dragan, > > I experienced a similar crash with my Mac app recently when using recent > versions of Xcode. > I found a way to fix it: > I added the CoreData framework explicitly in the target dependency setting as > it was not present.

Incompatible CoreData version crash

2021-08-04 Thread Dragan Milić via Cocoa-dev
Not really Cocoa but more Xcode/SDK problem, but still… I’ve got a Mac application, which uses CoreData. The usage of the framework is rather moderate, nothing really fancy about it. The application is build with SDK 11 (1Big Sur), but the minimal deployment target is Sierra (10.12). The last

Re: "nw_endpoint_handler_set_adaptive…" coming from XPC service

2021-05-27 Thread Dragan Milić via Cocoa-dev
On 27 May 2021, at 20:48, Jens Alfke wrote: >> On May 27, 2021, at 11:17 AM, Dragan Milić via Cocoa-dev >> wrote: >> >> I’ve got an application, which uses (a couple of) XPC service(s) to >> accomplish various tasks. Since recently, I don’t know when exactly but

"nw_endpoint_handler_set_adaptive…" coming from XPC service

2021-05-27 Thread Dragan Milić via Cocoa-dev
Hi all, I’ve got an application, which uses (a couple of) XPC service(s) to accomplish various tasks. Since recently, I don’t know when exactly but probably after some macOS update, I started seeing these messages coming out when XPC services are used: [connection]

Accessing "iCloud" keychain using Keychain Services

2021-03-25 Thread Dragan Milić via Cocoa-dev
Reading Keychain Services docs on and on and I can’t seem to find a way to access the keychain, which in Keychain Access application appears as “iCloud”. I’ve got no idea what its path could be so I could use SecKeychainOpen(), it isn’t in the default list returned by

Re: NSScrollView's custom content inset

2020-11-05 Thread Dragan Milić via Cocoa-dev
> čet 05.11.2020., at 20:57, Rob Petrovec wrote: > > Check out NSTableViewStylePlain Yes Rob, that was it, thanks a lot!! And now I feel quite stupid, trying all complicated things (described in my second message), while it’s so very simple :-) To my defence, that value stands somehow apart,

NSScrollView's custom content inset

2020-11-05 Thread Dragan Milić via Cocoa-dev
… trying again, as the stupid DTK machine suddenly reseted itself (it does that regularly) and incomplete message was somehow sent on booting back!! What would be the best approach to set custom insets of the contentView (NSClipView) of a NSScrollView? I’ll try to describe the problem in more

NSScrollView's custom content inset

2020-11-05 Thread Dragan Milić via Cocoa-dev
Hi all, What would be the best approach to set custom insets of the contentView (NSClipView) of a NSScrollView? I’ll try to describe the problem in more details… I’m trying to make and application look nice on upcoming Big Sur. The fact that Apple has made it so hard for an application (with

Creating OpenSSH compatible key pairs

2020-04-09 Thread Dragan Milić via Cocoa-dev
Hello, My question is not strictly related to Cocoa and I apologise for that, but this place seems to be the only useful resource for macOS related development and looking for information and questions (apart from noisy stack overflow). Secondly, I’m not very experienced in cryptography and

Re: Future of Cocoa

2019-11-21 Thread Dragan Milić via Cocoa-dev
> čet 21.11.2019., at 23.43, Pascal Bourguignon wrote: > > It’s not like children not being happy. That comment was related to “I’m leaving this place” announcement, probably because “most of you don’t agree with what I find ‘valid concerns’ so I’m leaving”. That’s exactly how it sounded to

Re: Future of Cocoa

2019-11-21 Thread Dragan Milić via Cocoa-dev
> čet 21.11.2019., at 23.06, Matthew Kozak wrote: > > Wow. > Debate (even heated) about Cocoa-dev (broadly) is one thing, but the personal > attacks, and attack on the list itself to the point of rage quitting, are all > unnecessary. Before sending messages, please look in the mirror and say

Re: Future of Cocoa

2019-11-21 Thread Dragan Milić via Cocoa-dev
> ćet 21.11.2019., at 21.20, Pier Bover wrote: > > It's time for me to leave this mailing list. Yeah! Good bye! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Thoughts on Cocoa

2019-10-04 Thread Dragan Milić via Cocoa-dev
> pet 04.10. 2019., at 11.51, Jeremy Hughes via Cocoa-dev wrote: > > It wasn’t clear to us (outside Apple) that Carbon was a temporary API until > 2007, when Apple suddenly abandoned 64-bit Carbon. I don’t agree. The first version of macOS predecessor (Rhapsody) shipped only with “Yellow Box”

Re: Thoughts on Cocoa

2019-10-03 Thread Dragan Milić via Cocoa-dev
> čet 03.10.2019., at 10.53, Matthew Kozak via Cocoa-dev wrote: > > Well, actually: > http://www.eat-more-burgers.com/blog/drugstore-burger > (couldn't resist). > > Maybe more like going to a drug's manufacturing plant to complain about your > PBM (pharmacy benefits manager), but yeah. Touché!

Re: Thoughts on Cocoa

2019-10-03 Thread Dragan Milić via Cocoa-dev
> čet 03.10.2019., at 00.49, John Randolph via Cocoa-dev wrote: > > Speaking as a former moderator of this list, this thread is off-topic for > Cocoa-dev. This list is for TECHNICAL discussion and help. > Kindly take it to reddit or wherever else the denizens of > comp.sys.mac.advocacy ended

Re: Hide badge of NSDraggingSession

2019-07-25 Thread Dragan Milić via Cocoa-dev
> 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 using that too. > pet 26.07.2019., at 03.30, Steve Mills via Cocoa-dev wrote: >

Re: Hide badge of NSDraggingSession

2019-07-25 Thread Dragan Milić via Cocoa-dev
> On pet 26.10.2019,. at 02.37, Steve Mills via Cocoa-dev wrote: > > Use the single image methods instead of adding multiple items. Do you think of deprecated (as of Lion) one: -[NSView dragImage:at:offset:event:pasteboard:source:slideBack:] ?? -- Dragan

Hide badge of NSDraggingSession

2019-07-25 Thread Dragan Milić via Cocoa-dev
Hi everyone, Here's a very straightforward question: starting a dragging session with -[NSDraggingSession beginDraggingSessionWithItems:event:source:] and having multiple dragging items automatically adds a badge, showing items count, to the composited dragging image. Is there any public