• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie question re. cocoa front-end to sql db
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: newbie question re. cocoa front-end to sql db
      • From: Andy Lee <email@hidden>
    • Re: newbie question re. cocoa front-end to sql db
      • From: Mike Blaguszewski <email@hidden>
References: 
 >newbie question re. cocoa front-end to sql db (From: Russ McBride <email@hidden>)
 >Re: newbie question re. cocoa front-end to sql db (From: Scott Ellsworth <email@hidden>)
 >Re: newbie question re. cocoa front-end to sql db (From: Russ McBride <email@hidden>)
 >Re: newbie question re. cocoa front-end to sql db (From: Scott Ellsworth <email@hidden>)
 >Re: newbie question re. cocoa front-end to sql db (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Tables created in code have different row height from those created in IB
  • Next by Date: Re: Doesn't -sortedArrayUsingDescriptors: use KVC accessors?
  • Previous by thread: Re: newbie question re. cocoa front-end to sql db
  • Next by thread: Re: newbie question re. cocoa front-end to sql db
  • Index(es):
    • Date
    • Thread