Article:
 |
|
Creating Toolbars for Mac OS X
|
| Subject: |
|
A few questions |
| Date: |
|
2002-03-20 13:07:05 |
| From: |
|
joaquimlopes
|
Response to: A few questions
|
|
Michele,
just override the validateToolbarItem in your NSWindowController and return NO when there is no record. Something like this:
- (BOOL) validateToolbarItem: (NSToolbarItem *) toolbarItem
{
return [[self document] numberOfRecords] > 0;
}
Hope this helps.
Joaquim Lopes
|
Showing messages 1 through 2 of 2.
-
A few questions
2002-03-20 20:21:33
michele
[View]
-
A few questions
2002-03-23 07:54:14
joaquimlopes
[View]
Problem is my application is not document based.
Michele