So I've spent the past few hours reading and am now trying to set up a simple 
MVC. 

I constructed a few buttons and textfields in a Window in IB
The View will instantiate when the Xib is loaded (so I've read anyway)

I created a MyController based on NSObject in the Xib SO once the Xib is loaded 
MyController is instantiated. 
NSLOGs indicate this is so.

I connected the UI elements to MyController.

NOW as MyController inits I have it THEN instantiate myDataModel object. 
NSLOGs indicate myDataModel comes up.

The UI elements in Window capture data correctly.
The save button retrieves the data from the Window and MyController sends the 
data to myDataModel.
NSLOGs indicate that is working as expected.  

All that appears to be working. 

BUT how does one send data from myDataModel to MyController.
OR is that by request from MyController only?

I tried to send MyController's ID during MyDataModel initialization.
That works NSLOGs indicate MyDataModel receives MyController's ID.

When I have MyController call a method in MyDataModel and attempt to call a 
method in MyController
I get an error during compile "! No Visible @interface for NSObject ...."

I have MyDataModel do the [super init] initialization.  
At the moment I'm baffled - 
Any advise would be appreciated. 

Probably have taken the wrong tack - I tend to do that.

YT



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to