Hi,
<ramble>
I'm new to objective-basic. So far, I see LOTS of possibilities and potential with it, and I really love the language. As a REALbasic programmer, I'm getting to understand how to hook the code up in Interface Builder, though it's not always obvious how. I like the much cleaner app appearance than those done in RB. In the future, I would like to see separate coding examples for each of the different controls. Between the examples available and Apple's Cocoa documentation, there are lots of things that are not obvious. Apple's documentation shows a heavy bent toward Objective-C, so how to do things here are not that clear. I have had success getting values from NSTextFields and NSButtons as well as putting values in the NSTextFields, but the NSSegmentedControl has me stumped . I also need to hook up an NSDatePicker to get a date value.
</ramble>
To the point:
I have been trying for days to write code to get the value of a segment or the index of an NSSegmentedControl in a normal application window, all with no luck. I have a function that gets activated when I click the control in the window, but I have been unable to access the values contained in it. Any example code and explanation for this and/or the NSDatePicker would be extremely appreciated.