Post

Replies

Boosts

Views

Activity

NSPathControl ClickedPathItem Doesn't Work
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;
5
0
1.5k
Dec ’19
CALayer backgroundFilters quit working in recent MacOS
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?
3
0
1.1k
May ’21
Disfunctional Archivers
MacOS 10.15.3Has any progress been made on these new archivers to make them actually work for non-secure archiving? i'm still using the deprecated methods because the new NSKeyedUnarchiver using "NO" for secure coding doesn't work. This is in a core data managed object awakeFromFetch. I've put in a compiler switch to flip between these types of archived data blocks for testing. NSError *error; self.primitivePropsData = [NSKeyedArchiver archivedDataWithRootObject:[NSDictionary dictionaryWithDictionary:theProps] requiringSecureCoding:NO error:&error]; if(error != nil) NSLog(@"%@", error.description); NSError *error; archivedDict = [NSKeyedUnarchiver unarchivedObjectOfClass:[NSDictionary class] fromData:propsData error:&error]; if(error != nil) NSLog(@"%@", error.description);It complains of getting an NSValue:2020-03-19 13:47:57.502593-0500 iQPresenter[16029:9943402] Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'NS.objects' was of unexpected class 'NSValue'. Allowed classes are '{( NSDictionary)}'." UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'NSValue'. Allowed classes are '{( NSDictionary)}'.}
1
0
735
Mar ’20