VS .NET class designer - visual-studio

Assume that class Being has a property of type Habitat. Both classes are implemented in their own .cs files. When I drag and drop the two classes from the class designer onto a new Class diagram, I do not see an association line from Being to Habitat, whereas there is an association in code. Am I doing something wrong, or this simply isn't implemented in VS yet?

To show the property connection, right-click on the property; "show as association" or "show as collection association" (as appropriate)

It's off by default. Right click on the property and choose "Show as association"

The class diagram doesn't show "lines" between every instance (property) of a type and its type. This would get very, very messy very quickly.
If "Being" derived from "Habitat" (which wouldn't make sense), it would show a line for that. It shows lines for inheritance, not each individual field/property.

Habitat is a property in Being. They are not associated in the way the designer shows. The designer shows inheritance.

Related

interface builder what is Object template

in the storyboard there is a object entity that can be added to a view controller. My problem is i am not sure of its purpose. What is its usefulness and also can you show its usage and how the same thing can be done programatically. I've tried dragging the object template over to a viewController but i dont know what to do with it afterwards. I'll provide a screenshot of exactly what im looking for since its in the interface builder of xcode:
This is useful to add an instance of a custom class. After you drag the Object into the document, you change its class on the Identity inspector. When the storyboard is loaded, an instance of that class will be created.
It's relatively uncommon to need to do it. You might add some custom controller object, but usually such responsibilities would be handled by the view controller or array/tree controllers. If you don't see a need, then don't worry about it. If, someday, you do find a need, well, then you'll know why it's possible.

Accessing the datasource of the XPage from a Custom Control

I guess that I am really missing something on the datasource in a custom control. When I create the custom control I have no idea what the name of the datasource on the XPage is going to be. I have added a custom property to the custom control to pass using the Type com.ibm.xsp.domino.model.DominoDocumentData and the Method Binding Editor, and this sort of seems to work if the Custom Control does not contain Custom Controls. At which point either I am getting lost or the XPage/Custom Control binding is getting lost.
Here is what I am trying to do I have created a Tab Table using the Extension Library and have placedd it on a cc. I have set up several tabs on it. Because the amount of information on each tab is pretty extensive I thought I would create a custom control for each tab. Then I ask the Yes/No question on almost every line I created a ccYN custom control, plus a couple of other ones as well because they can be reused and simple bound to a different fieldName that I have set up in the cc Properties. I see where others have said that if the datasource is defined for the XPage that it is available to all of the cc's, the method above seems to work for the first level but deeper than that leaves me or the XPage really confused. I have searched the internet/read Mastering Xpages but am not much further ahead.
It has been a long drawn out process but I think I have it now. On the Custom Control create a Property definition with a type of com.ibm.xsp.model.ModelDataSource with an edit type of String and call it something say ccDataSource. Then bind the the ccDataSource to the datasource of the XPage that contains it when it is know using SSJS so say it is myDataSource.
If the Custome Control is contained in a custome control and the datasource needs to be passed through another level the the binding is compositeData.ccDatasource or ?? whatever the outer datasource Property definition for the Data Source is.
There might be a cleaner way of doing this but I have not found it.
Not sure if you're still looking for an answer, but you can use the data source of "currentDocument" in a custom control. This assumes that the custom control is in a panel with one document data source, or in an XPage with one document data source.

Unidirectional Navigation Properties

Is there anyway to make EF navigational properties unidirectional?
In the example below, I would like to remove "Customers" property from the "Orders" table.
Driver behind this is the "circular reference" error I am receiving with Telerik Grid (which tries to serialize my object for Ajax Binding).
I've also run into this. Telerik has an article describing the problem and the solution http://blogs.telerik.com/blogs/posts/10-01-25/resolving_circular_references_when_binding_the_mvc_grid.aspx
Basically instead of deleting the property, as #Akhil suggests, you set it to Private which feels a little less destructive.
If its EF4,
Just Click on "Customers" Navigational Property in the Model View, and Delete (right click & delete).
If Its Earlier Versions,
You cannot do this in the edm-designer. You have to go into the xml-code and look for the navigationproperty you dont want to have and remove it. You will find the navigationiproperty in the CSDL area of your xml-code.

Xcode 4: List Methods By Name?

Is there any way to navigate the structure of an Objective-C file by alpha order for the methods? The combobox (in the Jump Bar) that shows all the methods is not much more helpful than looking through the file.
As per the Jump Bar Help Page:
"Tip: Hold down the Command key when selecting a level in the path menu to view its items alphabetically."
If it's a file implementing a class then in the Symbol Navigator (CMD+2) you can expand the class you're interested in and the class's member variables and methods are listed in alphabetical order.

How does Apple make the info.plist display its "Information Property List"?

My plists simply start with "Root". Theirs contains arrays of useful stuff you can select to tweak the configuration.
The specific info.plist I am looking at is in an iphone project.
I have researched this a little bit, (not alot) but haven't even detected a smell of solution.
What mechanism is putting this together? Can I bend it to my will?
To clarify, I am not referring to simply editing the plist, but using the Property List Editor to define the drop down lists in the left hand column, like Apple's info.list behaves.
Normally my plists will display in the editor with 3 columns. Key, Type and Value.
Info.plist has 2, how is it setup so its behaviour is different in the Property List Editor?
This link at apple defines the keys being used in the Info.plist.
Property List Key Reference
The names you see in the drop down menus in Property List Editor are provided by what Apple calls a "property list structure definition". This is an XML based file that defines specific keys and values for a particular type of property list. Property List Editor uses this to associate human readable names with particular property list keys, as well as sensible default values, type information, and so on.
Property List Editor hides the "Type" column when using a definition, because it gets the type information automatically from the structure definition. You can still use Edit > Value Type to change the type manually if you wish. You can also manually change the definition Property List Editor is using via View > Property List Type.
Xcode includes a built-in definition for Info.plist files, which is why you see the customization automatically when opening up an Info.plist file. If you're interested in how the structure definitions are defined, you can take a look in /Developer/Platform/MacOSX.platform/Developer/Library/Xcode/Plug-ins for the built-in definitions. I don't believe there's any official documentation for this format, but it's not too hard to pick up looking at the examples.

Resources