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

Back to archive index

Eloy Duran eloy.****@gmail*****
Sat Dec 23 09:57:15 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?

I think not. As the word says it's an "outlet".
Creating a getter as well would mean that
if I would have like a gazilion outlets in some controller class
that all the other classes that have a reference to the controller class
would also be able to access all the outlets of the controller class.
Whereas I would maybe like them to only be able to access one specific outlet...

As far as I know, that ain't right. But I could very well be mistaken.

> Laurent
>
> PS: nice run.rb.sh script :)

Haha, yes it comes in handy when you're tired/lazy.

Eloy.



More information about the Rubycocoa-devel mailing list
Back to archive index