开发者

ImageAndTextCell editing problem

开发者 https://www.devze.com 2023-01-31 08:54 出处:网络
I got ImageAndTextCell and I\'m using it on a NSOutlineView. When I double click a cell in order to edit it, I get the following error:

I got ImageAndTextCell and I'm using it on a NSOutlineView. When I double click a cell in order to edit it, I get the following error:

2开发者_开发知识库010-12-16 05:31:54.399 MyApp[26823:a0f] -[NSCFString representedObject]: unrecognized selector sent to instance 0xa0aff968

Does anyone know a solution for that?


Found the solution! Just remove the method

- (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:(NSRect)cellFrame ofView:(NSView *)controlView
0

精彩评论

暂无评论...
验证码 换一张
取 消