• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Q: Creating bindable properties editors for Core Data entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Q: Creating bindable properties editors for Core Data entities


  • Subject: Q: Creating bindable properties editors for Core Data entities
  • From: Karolis Ramanauskas <email@hidden>
  • Date: Thu, 26 Feb 2009 03:25:24 -0600

Good day,

First of all I would like to thank to everyone who helped me with my
previous question, I'm passed
NSManagedObjectContextObjectsDidChangeNotification ;)

Here is the scenario, I've looked at the archives, but I am still confused
of the correct plan of action:

I have a custom view that shows representations (draws rectangles) of
instances of core data entities. I set it up so when I double-click on any
of those rectangles I call a method in the controller and pass the required
object instance reference to it:

[[self delegate] showPropertiesWindowFor:currentFlowElement];

Now the controller does this:

- (void)showPropertiesWindowFor:(KRSimFlowElement *)flowElement {

    if ([flowElement isKindOfClass:[KRSimAssimilator class]]) {

        // SHOW PROPERTIES

    }

}

Now, as the method name indicates I would like to create a properties window
for that object instance and show it.

My abstract plan of action:

1. Create a template window in IB;
2. Create several template views in IB containing specific properties for
each entity.

Now I'm lost:

1. How should I proceed? Create separate NIB for this window and views?
2. How do I pass a reference of the selected object to a specific window
from showPropertiesWindowFor:?
3. How do I make the properties bind to that object I just passed?
4. I want to be able to open as many properties windows as I want for each
instance of an object, but if I double click on the object that has a window
already open it should only come into focus...

If anyone has some suggestions, if only to one part of this question, I'd
greatly appreciate that. I'm eager to learn and I'm not looking for complete
solution, but I'd like a roadmap from experienced people.

Thanks again,
Karolis
_______________________________________________

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

  • Prev by Date: Re: NSTableView && Custom Background ...
  • Next by Date: Re: Radio Buttons not Selecting Properly
  • Previous by thread: Re: What control/view should i use for a very specific requirment
  • Next by thread: Re: Creating bindable properties editors for Core Data entities
  • Index(es):
    • Date
    • Thread