gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NIB loader: custom views don't draw themselves


From: Luboš Doležel
Subject: Re: NIB loader: custom views don't draw themselves
Date: Sat, 10 Aug 2013 14:03:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

On 08/09/2013 01:36 PM, David Chisnall wrote:
> On 9 Aug 2013, at 12:22, Luboš Doležel <address@hidden> wrote:
> 
>> Right, sorry, it is @address@hidden:8{_NSRect={_NSPoint=dd}{_NSSize=dd}}16
>> 
>> So I assume the right solution is to create a substitutes table to 
>> rewrite CGRect->_NSRect etc.
> 
> That would certainly work, although the correct solution is probably
> to rename _NSRect to CGRect and _NSPoint into CGPoint and make the
> typedefs remain as-is.
> 
> The runtime is quite conservative about type mapping for structs,
> because, for example, NSPoint and NSSize have the same
> representation, but it's probably a bug if something is passed one
> and expects the other.
> 
> David
> 

And what about this one?

Calling [NSImage
-drawInRect:fromRect:operation:fraction:respectFlipped:hints:] with
incorrect signature.  Method has
address@hidden:address@hidden,
selector has
address@hidden:address@hidden

Note that there are two identical signatures printed in this warning.

-- 
Luboš Doležel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]