LoginSignup
1
1

More than 5 years have passed since last update.

NSImageCell の objectValue と image の違い

Posted at

TL;DR: 違いはない。

NSImageCell には、 NSCell から受け継いだ objectValue プロパティと image プロパティがある。これらは同じインスタンス変数を参照しているので、一方に値をセットすれば他方に反映される:

NSImageCell *cell = [[NSImageCell alloc] init];
cell.image = [NSImage imageNamed:@"..."];
// Now cell.image == cell.objectValue and vice versa.
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1