Add -size method from 10.6

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2012-10-16 17:16:30 +00:00
parent 293c07c2f0
commit f3b7ab026a
2 changed files with 10 additions and 0 deletions

View file

@ -623,6 +623,9 @@
*/ */
- (void) setTitle: (NSString*)aTitle; - (void) setTitle: (NSString*)aTitle;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
- (NSSize) size;
#endif
- (void) sizeToFit; - (void) sizeToFit;
- (void) submenuAction: (id)sender; - (void) submenuAction: (id)sender;

View file

@ -1480,6 +1480,13 @@ static BOOL menuBarVisible = YES;
return _menu.changedMessagesEnabled; return _menu.changedMessagesEnabled;
} }
- (NSSize) size
{
if (_view)
return [_view frame].size;
return NSZeroSize;
}
- (void) sizeToFit - (void) sizeToFit
{ {
NSRect oldWindowFrame; NSRect oldWindowFrame;