[Rubycocoa-devel 521] Re: Create tests for wrapped frameworks...

Zurück zum Archiv-Index

Laurent Sansonetti lsans****@apple*****
Sat Dec 23 09:49:27 JST 2006


Hi Eloy,

Sorry you were right. In fact, ib_outlet just creates the setter  
method, but not the getter. So in this specific case it is required to  
add "attr_reader :pdfView" as you found.

However I wonder if ib_outlet should not create the getter method as  
well. Thoughts everyone?

Laurent

PS: nice run.rb.sh script :)

On Dec 23, 2006, at 1:34 AM, Eloy Duran wrote:

> Okay, last mail, I promis, I hope...
>
> Otherwise you'll get these warnings and the menuitems won't update.
>
> 2006-12-23 00:14:05.707 CGPDFViewer[2190] MyDocument#pdfView - Can't
> get Objective-C method signature for selector 'pdfView' of receiver
> #<MyDocument:0x240ae0 class='MyDocument' id=0x5c9240>
>
> On 12/23/06, Eloy Duran <eloy.****@gmail*****> wrote:
>> And for the list...
>>
>> ---------- Forwarded message ----------
>> From: Eloy Duran <eloy.****@gmail*****>
>> Date: Dec 23, 2006 1:29 AM
>> Subject: Re: Create tests for wrapped frameworks...
>> To: Laurent Sansonetti <lsans****@apple*****>
>>
>>
>> > Yeah, I was really thinking/doubting about it too.
>> > But I think it's right, because what the ib_outlet does is
>> > it creates a reference to accessor of the view from the document  
>> right?
>> > But for the appcontroller to be able to access the accessor method
>> > you need to give it the right to do so.
>> > So it's confusing because there underneath each other,
>> > but both are for a complete different purpose.
>>
>> Okay, this was me acting as if I can't communicate hahaha.
>>
>> What I meant is; the ib_outlet let's the document access the view.
>> Whereas the attr_accessor makes sure that the appcontroller can  
>> access the
>> pdfView instance method of the document, which is then connected to  
>> the
>> view via the document...
>>
>> Eloy.
>>




More information about the Rubycocoa-devel mailing list
Zurück zum Archiv-Index