Re: Subclassing UIWebview a show-stopper?

2011-08-09 Thread Dave DeLong
Hi Arri, Subclassing UIWebView is probably not going to get your app rejected (though I have no insight in to the approval process). However from a architecture point-of-view, it smells bad. UIWebView is one of those views that's not intended to be subclassed. Sure you can, since you can

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-09 Thread Chris Ridd
On 8 Aug 2011, at 16:02, Kyle Sluder wrote: On Aug 8, 2011, at 4:54 AM, Chris Ridd chrisr...@mac.com wrote: Does OS X really support the sticky bit? Lion's sys/stat.h suggests no, though this line could be read a couple of ways: Yep, it's supported and used on directories. Don't think

blocks and retaining CoreFoundation objects

2011-08-09 Thread Roland King
I have a slow image conversion which I want to throw onto a background thread using GCD. The actual method which does the conversion takes a CGImageRef and the code looks like this -(void)convert:(CGImageRef)image withBlock:(ImageResizedBlock)callbackBlock { dispatch_async(

Re: Asynchronous downloading and parsing of XML

2011-08-09 Thread Mikkel Islay
On 8 Aug 2011, at 19:44, Jens Alfke wrote: It’s clearly a SAX parser. SAX parsers are incremental, that’s their whole point, otherwise it would be easier just to use a DOM API like NSXMLDocument. The docs implies that it is (related to it):

Re: Asynchronous downloading and parsing of XML

2011-08-09 Thread Mikkel Islay
On 8 Aug 2011, at 19:20, Thomas Davie wrote: All of this is asynchronous, so everything works happily :) Sure, we have established that your solution works, so far so good. What I am trying to get at is whether there is some design-pattern implied in the docs for the class which should alert

Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Devraj Mukherjee
Hi all, I am writing an API client for a REST service, parts of the REST API returns fixed String values. E.g. status of an order. I want to represents these fixed responses as constants. I have represented fixed numeric values using enums and used a typedef to represent the data type. Are

Frameworks (ConnectionKit)

2011-08-09 Thread Amy Heavey
Hi, I'd like to be able to use my mac app to upload an image to a server. From googling it seems the best way to achieve this is using the ConnectionKit framework to upload it via FTP. I've downloaded the framework, but Im at a loss, the examples included don't build, and looking at the

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Vyacheslav Karamov
Don't forget about @: #define MY_FUNNY_STR @Ha-ha-ha! 09-Aug-11 13:47, Devraj Mukherjee пишет: Hi all, I am writing an API client for a REST service, parts of the REST API returns fixed String values. E.g. status of an order. I want to represents these fixed responses as constants. I have

Lingering windows

2011-08-09 Thread Shane Stanley
I have a document-based application that uses garbage collection. It's straight-forward in terms of having subclasses of NSDocument, NSWindow, and NSWindowController, and documents have a single window (with drawer, if that makes any difference). But when I close a window/document, the window

Re: help with this error

2011-08-09 Thread Rick C.
The error is appearing in Lion but only on one specific Mac and one specific user. Other users are fine and other Macs are fine. There is something specific to the system in this case and it's the minority I'm sure, but still trying to figure out what it is... On Aug 9, 2011, at 8:19 AM,

Re: Know when text is edited in any app

2011-08-09 Thread Mike Abdullah
Forget any notion of doing this for NSTextView I'd advise; Safari and Mail are based around WebViews. On 8 Aug 2011, at 19:47, Joshua Garnham wrote: I need to know when text is entered (or anything relating to a delegate method happens) in any NSTextView in the active app whether it's my

Re: NSCoding to/from JSON?

2011-08-09 Thread Mike Abdullah
I toyed with doing something very similar for plists that might be of interest: https://github.com/mikeabdullah/KSPropertyListEncoder On 8 Aug 2011, at 17:56, Jens Alfke wrote: Been thinking about archiving NSObjects to/from JSON, using an API similar to NSCoding. I haven’t found any prior

CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Gabriel Zachmann
I am having a problem with rendering text on a CALayer. AFAIK, it works just fine with all users ... except one, where the text just does not show! This is my code for printing the text: @interface TextLayerDelegate : NSObject { // ... } - (void) drawLayer: (CALayer *) theLayer inContext:

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Mike Abdullah
Why have you picked FTP? On 9 Aug 2011, at 12:04, Amy Heavey wrote: Hi, I'd like to be able to use my mac app to upload an image to a server. From googling it seems the best way to achieve this is using the ConnectionKit framework to upload it via FTP. I've downloaded the framework,

Re: Know when text is edited in any app

2011-08-09 Thread Joshua Garnham
I'm not so bothered about Safari/Mail, I just used Safari as an example of what I wanted to do. I'd rather focus on doing it with NSTextView as that is what the majority of text editing apps use. I have - since I first asked the question - been using the Accessibility API's to find out

Re: Know when text is edited in any app

2011-08-09 Thread Mike Abdullah
It is not possible this way. You should not inject your code willy-nilly into other apps. On 9 Aug 2011, at 13:48, Joshua Garnham wrote: I'm not so bothered about Safari/Mail, I just used Safari as an example of what I wanted to do. I'd rather focus on doing it with NSTextView as that is

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Jerry Krinock
On 2011 Aug 09, at 03:47, Devraj Mukherjee wrote: Are Strings defined using #define good enough as String constants? It will work, but is considered to be bad form, I think because it could bloat your code some trivial amount by having a constant defined multiple times, if the compiler does

Re: Know when text is edited in any app

2011-08-09 Thread Joshua Garnham
I wouldn't be doing it 'willy-nilly', I would only do it if necessary and the code would serve only one sole purpose. However, you are correct in saying that it does not seem that it is possible the way I have been hoping to do it and so I will have to try and find some other way. On

Re: NSCoding to/from JSON?

2011-08-09 Thread jonat...@mugginsoft.com
On 8 Aug 2011, at 17:56, Jens Alfke wrote: Been thinking about archiving NSObjects to/from JSON, using an API similar to NSCoding. I haven’t found any prior art, but I thought I’d ask here. I am not talking about serializing JSON to/from collection objects a la TouchJSON, JSONKit, etc.;

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Amy Gibbs
It seemed the easiest way of uploading a file to the server? Regards Willow Tree Crafts Www.willowtreecrafts.co.uk On 9 Aug 2011, at 13:46, Mike Abdullah cocoa...@mikeabdullah.net wrote: Why have you picked FTP? On 9 Aug 2011, at 12:04, Amy Heavey wrote: Hi, I'd like to be able

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 09/08/2011, at 10:43 PM, Gabriel Zachmann wrote: I have checked that 'str' does actually hold a valid string at the user's instance. (I logged it and had him send me the log file.) I have also tried different font sizes. I have also googled around. All to no avail. Does anybody

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 09/08/2011, at 10:43 PM, Gabriel Zachmann wrote: I have checked that 'str' does actually hold a valid string at the user's instance. (I logged it and had him send me the log file.) CGContextSelectFont( ctxt, AndaleMono, 14, kCGEncodingMacRoman ); // Andale Mono doesn't work

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Mike Abdullah
My point is that you're not constrained to it. ConnectionKit is almost certainly overkill for this. If you're determined to use FTP, check out CFWriteStreamCreateWithFTPURL(). In general, I'd advise a WebDAV-like system fed by NSURLConnection is best. On 9 Aug 2011, at 14:15, Amy Gibbs wrote:

Re: Telling Auto Save, No, I'm busy now

2011-08-09 Thread Jerry Krinock
On 2011 Aug 08, at 09:29, Kevin Perry wrote: You may be able to work around this problem by overriding -autosaveWithImplicitCancellability:completionHandler: instead (also?) and doing the same approach of delaying NSDocument's code until once you've completed the background work. Thank

Re: Lingering windows

2011-08-09 Thread Jerry Krinock
On 2011 Aug 09, at 05:24, Shane Stanley wrote: Any thoughts/suggestions? See if -dealloc is running in your NSDocument subclass. Probably not. In that case, it's you're whole document that's lingering, not just the window. Never used garbage collection, so someone else will need to help

Re: [Lion] IBOutlets, strong or weak?

2011-08-09 Thread Marc Respass
Thanks a lot Josh and Sean. I never remember to read the release notes but I just went through AppKit's. I'm going back to the straight iVar style for Mac OS X for now. I was putting them all in the class continuation category anyway since they shouldn't be exposed externally. Marc On Aug 8,

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Amy Gibbs
I'm certainly noy tied to FTP, and I'll have a go with NSURLConnection. I did try to use that for another part but I just couldn't get it to work. Is there a particular sample/tutorial you could recommend? In the following code, accessing the URL in a webView works, but the

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Gabriel Zachmann
Thanks a lot for your response ... I've found the Core Graphics text handling methods to be gnarly and awkward the few times I've attempted to use them, and always ended up going some other route to render text. Could you please point me to a few of them? In your case, the choice seems

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 10/08/2011, at 12:48 AM, Gabriel Zachmann wrote: Could you please point me to a few of them? NSString, NSAttributedString, Core Text Can CATextLayer render text with a shadow? Like this: CGContextSetShadowWithColor( ctxt, CGSizeMake(0,0), 10, blue ); I really need the shadow to be

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread glenn andreas
On Aug 9, 2011, at 9:48 AM, Gabriel Zachmann wrote: Thanks a lot for your response ... I've found the Core Graphics text handling methods to be gnarly and awkward the few times I've attempted to use them, and always ended up going some other route to render text. Could you please

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Ken Thomases
On Aug 9, 2011, at 7:58 AM, Jerry Krinock wrote: This is how it's usually done: In a .m, .c or .cpp file, NSString* const constEntityNameLog = @Log_entity ; and if you need to use this constant in other files, add, in the counterpart header file, extern NSString* const

Scanning images

2011-08-09 Thread Eric Matecki
Hello, I need to scan images into my app. Which technology should I use, it has to work from 10.5.x upwards, PPC and Intel, 32 and 64 bits. I know only of ICA. Is there something better (ICA dates back to 10.2) ? Thanks. -- Keep intel OUTSIDE my Mac ! Hiii !!! I can see Intel chips creeping

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Thomas Wetmore
The startImmediately parameter is a BOOL, not a string. Use YES instead of @YES and see if that helps. Tom W. On Aug 9, 2011, at 10:44 AM, Amy Gibbs wrote: I'm certainly noy tied to FTP, and I'll have a go with NSURLConnection. I did try to use that for another part but I just couldn't get

Hide Quicktime logo when using MPMoviePlayerController to play audio

2011-08-09 Thread John Love
Reference my iOS TabController app... Apple docs state that the AVAudioPlayer class does not provide support for streaming audio based on HTTP URL's. AVAudioPlayer plays only music embedded in the iApp. Given that, I do use MPMoviePlayerController to play these web stored audio/mp3 files

Re: Scanning images

2011-08-09 Thread Eric Matecki
Hi Tom, Yes I'm talking about scanner devices. But I don't have to support versions EARLIER than 10.5, but from 10.5 to 10.7. So is it twain or ICA ? Which one should have the longest life ? Thanks. Tom Hohensee wrote: If you are talking getting images from scanner device. You need TWAIN for

Re: Scanning images

2011-08-09 Thread Nick Zitzmann
On Aug 9, 2011, at 9:42 AM, Eric Matecki wrote: Hi Tom, Yes I'm talking about scanner devices. But I don't have to support versions EARLIER than 10.5, but from 10.5 to 10.7. So is it twain or ICA ? In our SOHO Notes product, we use: * IKScannerDeviceView if the user is using Snow

Re: Scanning images

2011-08-09 Thread Robert Tillyard
Hello, Eric, I thought that the machines I'm running it on were a range of 10.5 and 10.6 but it looks like I'm probably mistaken there. Sorry. Regards, Rob. On 9 Aug 2011, at 16:54, Eric Matecki wrote: Hi Robert, I just downloaded it, but the Build (and Runtime) Requirements are Mac OS X

Re: Scanning images

2011-08-09 Thread Eric Matecki
Hi Nick, I will try this tomorrow. Probably won't use twain, if the device isn't supported by ImageKit nor ICA, just too bad. Thanks. Nick Zitzmann wrote: On Aug 9, 2011, at 9:42 AM, Eric Matecki wrote: Hi Tom, Yes I'm talking about scanner devices. But I don't have to support versions

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Gabriel Zachmann
CGContextSelectFont( ctxt, AndaleMono, 14, kCGEncodingMacRoman ); // Andale Mono doesn't work either Perhaps he doesn't have Andale Mono on his machine? I'm not sure what CG does with text if the font isn't there, does it fall back to something else or just silently fail? I think

Verify my Understanding

2011-08-09 Thread koko
I think I get it re: printing but would like some verification of my understanding. When printing, the printing context coordinate system is measured in points (pt = 1/72 inch). When getting paper size it is returned in points. The printing context is device independent. So, to print an

Re: Scanning images

2011-08-09 Thread Tom Hohensee
Ikscannerdevice (part if image kit) and its related classes is the new method going forward. There is a drop in IB solution. Double check 10.5 compatibility. Really easy. Sent from my iPhone On Aug 9, 2011, at 10:43 AM, Eric Matecki eml...@wanadoo.fr wrote: Hi Tom, Yes I'm talking about

NSLog() without the timestamp?

2011-08-09 Thread William Squires
Is there a function like NSLog() that doesn't print the timestamp (and other crap) and doesn't automatically append a '\n' at the end? If not, what would be the best way to implement such a function. Trouble is, printf() doesn't understand the %@ specifier, so that approach would be a PITA.

Re: NSLog() without the timestamp?

2011-08-09 Thread Dave DeLong
Try something like this: http://cocoaheads.byu.edu/wiki/different-nslog Cheers, Dave On Aug 9, 2011, at 9:30 AM, William Squires wrote: Is there a function like NSLog() that doesn't print the timestamp (and other crap) and doesn't automatically append a '\n' at the end? If not, what would

Re: NSCoding to/from JSON?

2011-08-09 Thread Jens Alfke
On Aug 9, 2011, at 6:10 AM, jonat...@mugginsoft.com wrote: Have you thought about using YAML? YAML is nice, but this is for CouchDB, which is already strongly based on JSON. —Jens smime.p7s Description: S/MIME cryptographic signature ___

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Jens Alfke
On Aug 9, 2011, at 7:44 AM, Amy Gibbs wrote: NSURL *uploadURL = [[NSURL alloc] initWithString:escapedUrl]; NSMutableURLRequest* post = [NSMutableURLRequest requestWithURL: uploadURL]; If you want to upload anything, you want to send a PUT or POST request, but the default is a GET; sou need

Re: NSLog() without the timestamp?

2011-08-09 Thread Jens Alfke
On Aug 9, 2011, at 9:30 AM, William Squires wrote: Is there a function like NSLog() that doesn't print the timestamp (and other crap) and doesn't automatically append a '\n' at the end? If not, what would be the best way to implement such a function. Trouble is, printf() doesn't

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/9/11 6:15 AM, Amy Gibbs wrote: It seemed the easiest way of uploading a file to the server? In addition to what others have mentioned, it is worth pointing out that FTP is a notoriously insecure protocol (or at least lends itself to security

Re: Subclassing UIWebview a show-stopper?

2011-08-09 Thread David Duncan
On Aug 8, 2011, at 10:51 PM, arri wrote: After allot of writing test-cases, and googling for others' experiences, i found that the most easy and straightforward way of achieving what i want, is to simply subcass UIWebView and override UIViews' - hitTest:withEvent method. However, as

Re: Scanning images

2011-08-09 Thread Scott Ribe
On Aug 9, 2011, at 9:14 AM, Eric Matecki wrote: Which technology should I use, it has to work from 10.5.x upwards, PPC and Intel, 32 and 64 bits. Well, TWAIN is not currently supported for 64-bit, and it's not clear that it ever will be. -- Scott Ribe scott_r...@elevated-dev.com

Re: blocks and retaining CoreFoundation objects

2011-08-09 Thread David Duncan
On Aug 8, 2011, at 11:43 PM, Roland King wrote: After a bit of googling I came across some posts which explained Block_Copy() would treat a variable adorned with __attribute__((NSObject)) similarly to NSObjects and retain them. So changing the method signature to this

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Gregory Weston
Devraj Mukherjee wrote: I am writing an API client for a REST service, parts of the REST API returns fixed String values. E.g. status of an order. I want to represents these fixed responses as constants. I have represented fixed numeric values using enums and used a typedef to represent

Re: Decimation - NSBezierPath or something else?

2011-08-09 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/8/11 5:49 PM, Graham Cox wrote: I can tell you that 25,000 points in a bezier path will make for slow drawing, though it also depends on your hardware of course. Lo and behold, when I went from 7500 points (which rendered instantly) to 25000

Re: NSCoding to/from JSON?

2011-08-09 Thread Sean McBride
On Mon, 8 Aug 2011 09:56:07 -0700, Jens Alfke said: Been thinking about archiving NSObjects to/from JSON, using an API similar to NSCoding. I haven’t found any prior art, but I thought I’d ask here. Lion has NSJSONSerialization:

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Chris Hanson
On Aug 9, 2011, at 3:47 AM, Devraj Mukherjee wrote: I am writing an API client for a REST service, parts of the REST API returns fixed String values. E.g. status of an order. I want to represents these fixed responses as constants. I have represented fixed numeric values using enums and

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Chris Hanson
On Aug 9, 2011, at 10:10 AM, Gregory Weston wrote: I'm still generally in favor of named constants over pre-processor substitution. Gives you types and no worry about parentheses. You can also use the global constant in the debugger (including in command completion) because it has a symbol

Re: Lingering windows

2011-08-09 Thread Quincey Morris
On Aug 9, 2011, at 05:24 , Shane Stanley wrote: I have a document-based application that uses garbage collection. It's straight-forward in terms of having subclasses of NSDocument, NSWindow, and NSWindowController, and documents have a single window (with drawer, if that makes any

Re: NSCoding to/from JSON?

2011-08-09 Thread Jens Alfke
On Aug 9, 2011, at 10:45 AM, Sean McBride wrote: Lion has NSJSONSerialization: I know, and I already use it. Not the same thing, though: in my original message I wrote I am not talking about serializing JSON to/from collection objects a la TouchJSON, JSONKit, etc.;”. —Jens smime.p7s

IKImageBrowserView

2011-08-09 Thread koko
I have implemented - (void) imageBrowser:(IKImageBrowserView *) view removeItemsAtIndexes: (NSIndexSet *) indexes and - (BOOL) imageBrowser:(IKImageBrowserView *) aBrowser moveItemsAtIndexes: (NSIndexSet *)indexes toIndex:(NSUInteger)destinationIndex They are in the same file.

Re: IKImageBrowserView

2011-08-09 Thread Tom Hohensee
How are you handling the drag operation? Sent from my iPhone On Aug 9, 2011, at 2:49 PM, koko k...@highrolls.net wrote: I have implemented - (void) imageBrowser:(IKImageBrowserView *) view removeItemsAtIndexes: (NSIndexSet *) indexes and - (BOOL) imageBrowser:(IKImageBrowserView *)

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Leo
You can use libcurl: http://curl.haxx.se/ Extremely powerful library, which is a part of Mac OS X, that supports most protocols (FTP, SFTP, HTTP etc.) I find it very easy to use - but I've been using it for years in either its command line (curl) or library implementation. There's also

Re: IKImageBrowserView

2011-08-09 Thread koko
I just saw another Apple example that showed dragging implementations required, this was not in the first example I saw. So I am doing the dragging stuff. Thanks. -koko On Aug 9, 2011, at 3:07 PM, Tom Hohensee wrote: How are you handling the drag operation? Sent from my iPhone On Aug

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Mike Abdullah
On 9 Aug 2011, at 21:36, Leo wrote: You can use libcurl: http://curl.haxx.se/ Extremely powerful library, which is a part of Mac OS X, that supports most protocols (FTP, SFTP, HTTP etc.) I find it very easy to use - but I've been using it for years in either its command line (curl)

Re: Lingering windows

2011-08-09 Thread Shane Stanley
On Aug 9, 2011, at 11:50 PM, Jerry Krinock wrote: See if -dealloc is running in your NSDocument subclass. Probably not. In that case, it's you're whole document that's lingering, not just the window. Dealloc isn't called with GC, and the document isn't lingering -- it's just the window.

Re: Lingering windows

2011-08-09 Thread Shane Stanley
On Aug 10, 2011, at 3:51 AM, Quincey Morris wrote: It's not entirely clear what it is you're expecting here. What I'm expecting is that when I close a document, the document, the window controller and the window will disappear. AFAICT -- and I have spent some time pondering the

[SOLVED] Re: CoreData I/O error for database: no such table

2011-08-09 Thread Nick Zitzmann
On Aug 8, 2011, at 4:35 AM, Nick Shore wrote: I was in fact using existing databases - actually the update I'm working on has a migration involved in it too. I didn't mention it originally as I'd ruled it out as the cause, but that actually helped fix the problem. Since I was already

Re: NSLog() without the timestamp?

2011-08-09 Thread William Squires
Thanks, this is the sort of thing I'm looking for, but is one of those cases of if you don't know the right thing to ask for, you can't Google it... In this case, the 'right thing' is QuietLog. :) On Aug 9, 2011, at 11:31 AM, Dave DeLong wrote: Try something like this:

Re: NSLog() without the timestamp?

2011-08-09 Thread Klaus Backert
On 10 Aug 2011, at 02:29, William Squires wrote: Thanks, this is the sort of thing I'm looking for, but is one of those cases of if you don't know the right thing to ask for, you can't Google it... In this case, the 'right thing' is QuietLog. :) Try Google with NSLog without timestamp --

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 10/08/2011, at 2:06 AM, Gabriel Zachmann wrote: Just checked the doc of CATextLayer but couldn't find a hint on how it helps me determine whether or not a font is installed ... can you tell me? I doesn't. But it falls back gracefully, AFAIK. If you need a specific non-standard font, you

Re: Frameworks (ConnectionKit)

2011-08-09 Thread Leo
On 8/9/11 6:28:54 PM, Mike Abdullah wrote: Bear in mind PolKit is GPL, unless the author gives you permission otherwise. Yeah actually I had to mention this but it didn't look like the original question referred to a commercial product. ___

NSTableView: move rows through drag and drop?

2011-08-09 Thread Izak van Langevelde
I implemented drag and drop in an NSTableView by writing the row indexes of the rows to be copied/moved to the pasteboard, which works. Now I want to allow drag and drop from one document to another, and my first guess was to write the row data to the pasteboard. What puzzles me, is how to

Re: Lion's new Resume feature, document restoration, and splash screens

2011-08-09 Thread Dave Fernandes
I just got back to this problem (after watching the WWDC11 Resume and Automatic Termination video). I added an additional override and license check in: -[NSDocumentController reopenDocumentForURL:withContentsOfURL:display:completionHandler:] And now my modal window displays before the

Re: Lingering windows

2011-08-09 Thread Shane Stanley
On Aug 10, 2011, at 3:51 AM, Quincey Morris wrote: use the debugger's 'info gc-roots' command (having set a breakpoint somewhere after the window has been closed and the collector has had time to run, preferably) to find out what's keeping the window alive. So I get this: info gc-roots

Re: Lingering windows

2011-08-09 Thread Quincey Morris
On Aug 9, 2011, at 21:33 , Shane Stanley wrote: info gc-roots 0x4011fcca0 Number of roots: 7 Root: #1 0 Kind: stack rc: 0 Address: 0x7fff5fbfe288 Frame level: 1 Symbol: unknown 1 Kind: object rc: 0 Address: 0x0004011fcca0 Class: MyWindow Root: #2 0 Kind: stack

Cocoaheads Lake Forest Meeting tomorrow, Wed. Aug. 9

2011-08-09 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. Please join us TONIGHT from 7pm to 9pm on Wednesday, 8/9. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Greetings, all, We will be walking

Correction: Cocoaheads Lake Forest Meeting tomorrow, Wed. Aug. 10

2011-08-09 Thread Scott Ellsworth
Date corrected: CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. Please join us TOMORROW from 7pm to 9pm on Wednesday, 8/10. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Greetings, all, We

Re: Menu Item Key Equivalent

2011-08-09 Thread Leo
On 8/5/11 4:43:06 AM, Uli Kusterer wrote: On 05.08.2011, at 08:49, Jens Alfke wrote: Photoshop has always used letter keys as commands to select tools, and most other image editors on Mac follow suit, like Pixelmator and (I think) Acorn. I’m not sure if these show up in menus, though,

Re: Lingering windows

2011-08-09 Thread Shane Stanley
On Aug 10, 2011, at 3:12 PM, Quincey Morris wrote: Starting at the bottom, the last 3 show strong references to the window from object 0x000400efa2e0. *That* object is being kept alive by 2 stack references (#6 and #7), but it's a root reference in itself. I wouldn't be surprised if