Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > CoreData and "s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1565 of 1610
Post > Topic >>

CoreData and "should quit after last window closed"

by Martin Schlueter <schlueter@[EMAIL PROTECTED] > Jan 29, 2008 at 05:42 PM

Hi

I'm not an expert in programming but I managed to build a CoreData 
application and enhanced it with some AppleScript. My app has only one 
window and from time to time my user manages to close the window and 
has no way of re-opening it (apart from quitting and restarting).

I see two possibilities to get around this:

1.) 
My app could open the window when activated again (as Mail, 
iTunes, ... does)

2.)
My app could quit when the windows closes. 


So far I have no idea how to manage this. In the "currency converter" 
tutorial I found the following event handler

on should quit after last window closed theObject
	return true
end should quit after last window closed

I added the handler to the AppleScript and linked it with the event in 
Interface Builder. But this doesn't work, the event handler is not 
even called.

I guess the reason for it is that my app is a CoreData app, not a 
AppleScript Studio-app. The handler works when I use it in another 
ASS-app.

Is there a way to get this working in an CoreData app with AppleScript 
code? Any hints are very appreciated.


ciao

      Martin




 3 Posts in Topic:
CoreData and "should quit after last window closed"
Martin Schlueter <schl  2008-01-29 17:42:04 
Re: CoreData and "should quit after last window closed"
Gregory Weston <uce@[E  2008-01-29 15:52:16 
Re: CoreData and "should quit after last window closed"
Martin Schlueter <schl  2008-02-01 16:13:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 6:15:18 CDT 2008.