MacOS, 10.15, Objective C.I'm trying to update a functioning linear NSPathControl to not using deprecated cells. Simply replacing NSPathComponentCell by NSPathControlItem displays properly, but clickedPathItem doesn't work, aparantly because of the copy property. I need the index in the path array, so I tried indexOfObject using the clickedPathItem object and the pathItems array. No go. You can see why by looking at the following:- (IBAction)pathControlSingleClick:(id)sender { NSPathControlItem *pcc = [self.pathControl clickedPathItem]; if(pcc == nil) return; // Path Control clicked, but nobody is home. NSArray *items = self.pathControl.pathItems; if(items == nil || [items count] == 0) return; // Double CYA. NSUInteger clickedIndex = [items indexOfObject:pcc]; [self.sftpManager.pathArray shortenToLength:clickedIndex]; [self updataPathComponentArray]; [self updateListing];}selfRTPServerUploadWindowController *0x1006100b00x00000001006100b0pccNSPathControlItem *0x6000000268400x0000600000026840NSObjectNSObject_secretCellNSPathComponentCell *0x600003303de00x0000600003303de0cells__NSArrayM *@"3 elements"0x0000600000cf0810[0]NSPathControlItem *0x6000000269d00x00006000000269d0NSObjectNSObject_secretCellNSPathComponentCell *0x6000033020800x0000600003302080[1]NSPathControlItem *0x600000026f300x0000600000026f30NSObjectNSObject_secretCellNSPathComponentCell *0x600003303de00x0000600003303de0[2]NSPathControlItem *0x600000025ca00x0000600000025ca0NSObjectNSObject_secretCellNSPathComponentCell *0x600003303b600x0000600003303b60clickedIndexNSUInteger9223372036854775807The secretCells in the array do contain a matching item, but the NSPathControlIem objects do not. Any suggestions for a workaround? Bug report time?Addendun: I tried asking for the URL of clickedPathItem, but got nil;
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Trying to update my CIFilters. The project absolutely refuses to set MTLLINKER_FLAGS. Says it's already defined somewhere, who knows to what. Should I take XCode's word for it? Wassup?
Our app uses CALayers for chart builds. We use temporary CALayers to apply backgroundFilters to highLight specified areas using a custom filter. In Big Sur, they quit working. We updated to metal, thinking that deprecated methods could be the problem. No go. We then tried installing standard filters, e.g., CIColorInvert, for testing. No go either. The filters seem to install, but have no effect. Has something changed with CALayer backgroundFilters?
Does this make any sense whatsoever? What does it mean?
'knobColor' is deprecated: first deprecated in macOS 11.0 - Use NSScroller instead