mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-23 11:20:57 +00:00
22 lines
555 B
Mathematica
22 lines
555 B
Mathematica
|
#include <Foundation/Foundation.h>
|
||
|
#include <EOAccess/EOAccess.h>
|
||
|
#include <EOControl/EOControl.h>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||
|
EOModel *model = [[EOModelGroup defaultGroup] modelNamed:@"library"];
|
||
|
EOAdaptor *adaptor = [EOAdaptor adaptorWithName:[model adaptorName]];
|
||
|
EOAdaptorContext *context = [adaptor createAdaptorContext];
|
||
|
EOAdaptorChannel *channel = [context createAdaptorChannel];
|
||
|
|
||
|
[channel openChannel];
|
||
|
|
||
|
/* insert code here */
|
||
|
|
||
|
[channel closeChannel];
|
||
|
[pool release];
|
||
|
return 0;
|
||
|
}
|
||
|
|