Вопрос

Something quite strange is happening in my IKImageBrowserView subclass:

I'm trying to print the size of intercellSpacing and cellSize respectively.

CBDebug(@"intercellSpacing %@", NSStringFromSize([self intercellSpacing]));
CBDebug(@"cellSize %@", NSStringFromSize([self cellSize]));

The second line is absolutely fine but the first one doesn't compile:

Incompatible type for argument 1 of 'NSStringFromSize'.

However the two functions are returning the same type:

- (NSSize)intercellSpacing
- (NSSize)cellSize

The SDK used in xCode are 10.6. What am I doing wrong ?

thanks

Это было полезно?

Решение

Make sure your deployment target is set to 10.6.

With that setting set to any earlier version, you can't use anything that didn't exist yet on 10.6, which is when -[IKImageBrowserView intercellSpacing] was introduced.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top