Re: NSSegmentedControl send action only from the selected segment

2009-03-24 Thread Michele Barboni
On Mar 19, 2009, at 10:11 AM, Michele Barboni wrote: Hi, I've a NSSegmentedControl, 7 segments (labeled with weekdays), which has selectedIndex bound through a value transformer (NO reverse transformation) to NSDates. Now, one of my awakeFromNib do this: [sedutaDays setTarget

NSSegmentedControl send action only from the selected segment

2009-03-19 Thread Michele Barboni
Hi, I've a NSSegmentedControl, 7 segments (labeled with weekdays), which has selectedIndex bound through a value transformer (NO reverse transformation) to NSDates. Now, one of my awakeFromNib do this: [sedutaDays setTarget:self]; [sedutaDays setAction:@selector(setWeekDay:)]; [sedutaDays s

Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer

2009-03-17 Thread Michele Barboni
On Mar 16, 2009, at 8:40 PM, Michele Barboni wrote: if(value = nil) return nil; missed a "=".. sorry.. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer

2009-03-16 Thread Michele Barboni
Hi, I'm developing a small CoreData app which is essentially a week scheduler, so, I " don't have " to worry about years, month, days etc.. only weekdays, hours and minutes. For editing timings (weekday, hour and minute) I have a NSSegmentedControl with 7 segments named Monday, Thuesday, W

Again about NSTableView and NSArrayController bindings

2008-11-13 Thread Michele Barboni
Hi, following Hillegass example (RaiseMan app) I'm trying to populate my NSTableView with bindings. I've a custom class, 3 attributes, call it MyCustomClass. I've an appController, where there's a NSMutableArray (called table) with instances of MyCustomClass. I've a NSTableView in IB, 3 co

How to manage (My)SQL data in Cocoa

2008-11-09 Thread Michele Barboni
Hi, I'm developing a small application for showing/adding/modifying/ deleting entries for a MySQL database by some NSTableViews. My (mysql) tables are very simple, all of them has as primary-key and foreign-key an integer (autoincrement), other columns are varchar() or text. Currently I'm