Re: Fundamental mistake in my understanding of use of classes/instances/encapsulation/messaging
Re: Fundamental mistake in my understanding of use of classes/instances/encapsulation/messaging
- Subject: Re: Fundamental mistake in my understanding of use of classes/instances/encapsulation/messaging
- From: Jason Wiggins <email@hidden>
- Date: Sat, 21 Jun 2008 15:08:26 +1000
Graham,
You observation is helpful. I thought that I needed to create a view
class. I also thought that with this view class it would have an
IBAction (the popup button connected to this) with a switch function,
with each case setting an ivar which would be returned to the
controller class through getter in the controller when the button was
pressed. I you get what I mean. Am I going the "long way round" by
doing this?
So have I gone too far with the idea of abstraction?
By your observation, I should lose the view class I created and
connect an IBAction in the controller to the popup button?
Regards,
Jason
On 21/06/2008, at 2:05 PM, Graham Cox wrote:
Downloading your file produces an empty (zero bytes) file at least
when clicking your link and using Finder.
But one observation, in an MVC model with a pop-up button, the pop-
up button *is* the view, so I'm not sure in what way you have
connected this additional view - that sounds wrong.
Graham
On 20 Jun 2008, at 10:48 pm, Jason Wiggins wrote:
Both the Controller and View Classes are connected to the popup
button in IB.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden