Post

Replies

Boosts

Views

Activity

Reply to Getting clicked item index in NSPathControl with pathItems instead of pathComponentCells
Yes. Path titles for files may not be unique, so that is a problem. I've been bitching about NSPathControl for several years and recently filed another bug report which has not even been acknowledged. This thing has never worked with "items", but they refuse to do anything about it, so I'm still using cells, which do work. ClickedPathItem will never return an item in the items array. Also, I need the geometry of each cell, which I use for hover popovers, and you cannot obtain that using items.
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’23
Reply to NSPathControl ClickedPathItem Doesn't Work
Well I'm back, and this bug has never been fixed in Objective C, and I'm pretty sure it also persists in Swift. The problem is that clickedPathItem is readonly and returns a reference to the clicked item, but pathItems is "copy" and does not contain the clicked item. Copies likely also copy the enclosed secretCells. Both indexOfObject: and indexOfObjectIdenticalTo: return NSNotFound and are therefore useless. While I could try to find the index by comparing titles, that is also useless because URL paths can contain multiple titles that are identical. So far, I have not come up with a workaround. I'm trying to get rid of compiler complaints about using deprecated cells.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jan ’23
Reply to Getting clicked item index in NSPathControl with pathItems instead of pathComponentCells
Yes. Path titles for files may not be unique, so that is a problem. I've been bitching about NSPathControl for several years and recently filed another bug report which has not even been acknowledged. This thing has never worked with "items", but they refuse to do anything about it, so I'm still using cells, which do work. ClickedPathItem will never return an item in the items array. Also, I need the geometry of each cell, which I use for hover popovers, and you cannot obtain that using items.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to NSPathControl ClickedPathItem Doesn't Work
Well I'm back, and this bug has never been fixed in Objective C, and I'm pretty sure it also persists in Swift. The problem is that clickedPathItem is readonly and returns a reference to the clicked item, but pathItems is "copy" and does not contain the clicked item. Copies likely also copy the enclosed secretCells. Both indexOfObject: and indexOfObjectIdenticalTo: return NSNotFound and are therefore useless. While I could try to find the index by comparing titles, that is also useless because URL paths can contain multiple titles that are identical. So far, I have not come up with a workaround. I'm trying to get rid of compiler complaints about using deprecated cells.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Cannot edit/add bank info in App Store Connect
Doesn't Work.
Replies
Boosts
Views
Activity
Sep ’21