mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Added workaround for OSX bug in +new ... to get portability to OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13421 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
37f98cebdf
commit
fa75f573cd
1 changed files with 9 additions and 0 deletions
|
@ -45,6 +45,15 @@
|
|||
if (self == [GSTable class])
|
||||
[self setVersion: 1];
|
||||
}
|
||||
|
||||
/* It was reported that the inherited +new implementation doesn't work
|
||||
* on OSX. Override it with a sane implementation to get portability
|
||||
* to OSX. */
|
||||
+(id) new
|
||||
{
|
||||
return [[self alloc] init];
|
||||
}
|
||||
|
||||
//
|
||||
// Instance Methods
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue