Re: newbie question re. cocoa front-end to sql db
Re: newbie question re. cocoa front-end to sql db
- Subject: Re: newbie question re. cocoa front-end to sql db
- From: Ondra Cada <email@hidden>
- Date: Wed, 22 Mar 2006 22:33:09 +0100
Andy,
On 22.3.2006, at 22:20, Andy Lee wrote:
When I want to try something simple, such as a code snippet posted
on this list, I usually stick it either in the app delegate's -
awakeFromNib or in the action method for one of my buttons
Not that there's anything bad with this approach and of course you
need that for app-related things; just for completeness' sake --
often it's quickest and easiest to try directly in Terminal (I am
writing this mainly for I have to my surprise found there are Xcode
users around who don't know Xcode actually is not needed for simple
things :))
Just a moment ago I've tried this way a distributed notification in
the app I am working on:
117 /tmp> >q.m
#import <Cocoa/Cocoa.h>
int main() { [NSAutoreleasePool new];
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"OCSEsmeMLayoutPluginOpenObject"
object:@"SavePreview"]; return 0; }
118 /tmp> cc -Wall q.m -framework Cocoa && ./a.out
119 /tmp> ./a.out
120 /tmp> ./a.out
121 /tmp> ./a.out
122 /tmp> sleep 3; ./a.out
123 /tmp>
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden