crash in

2013-05-24 Thread Martin Hewitson
Dear list, I have a report from a user that they, all of a sudden, can't open an existing document using my app without causing a crash. The document is made for and by the app. And as far as I can glean from the description, it was working just fine until one day (recently) it started causing

Re: crash in initWithPersistentStoreCoordinator

2013-05-24 Thread Martin Hewitson
Apologies: I meant to complete the subject after writing the mail. Fixed now. Martin On 24, May, 2013, at 06:11 PM, Martin Hewitson wrote: > Dear list, > > I have a report from a user that they, all of a sudden, can't open an > existing document using my app without causing a crash. The docu

Re: crash in

2013-05-24 Thread Jens Alfke
On May 24, 2013, at 9:11 AM, Martin Hewitson wrote: > The crash seems to be something to do with the XML file, but the file is > >6000 lines long, so it's hard to validate it by hand There are automatic validators, including an online one run by the W3C. I can’t remember the URL but it should

Re: crash in

2013-05-24 Thread Michael Crawford
Try loading your document into a DOM with either Xerces-C - actually C++ - or Xerces - Java. It's not hard at all to write a program just a few lines long to do that. If your document is not conformant to XML, Xerces will complain. If your format isn't that complex, it's not hard to write a DTD.

Re: crash in

2013-05-24 Thread Martin Hewitson
Great. I found an on-line validator (http://www.w3schools.com/dom/dom_validate.asp) and it finds no errors. Back to the crash log: do the reported errors mean that there's something wrong with the XML file? I mean, this file is created by Core Data, by calling -saveToURL:... in the NSPersistent

Re: crash in

2013-05-24 Thread Chris Ridd
On 24 May 2013, at 18:31, Martin Hewitson wrote: > Great. I found an on-line validator > (http://www.w3schools.com/dom/dom_validate.asp) and it finds no errors. > > Back to the crash log: do the reported errors mean that there's something > wrong with the XML file? I mean, this file is create

The same view used in 2 menu items

2013-05-24 Thread Steve Mills
I have an NSOutlineView in a window. One of the columns uses an NSPopUpButtonCell (a subclass actually). The menu contains 1 menu item, which shows an NSView. This window also has an NSPopUpButton whose menu contains 1 menu item, which also shows an NSView. When I try using the same NSView in bo

Re: The same view used in 2 menu items

2013-05-24 Thread Seth Willits
On May 24, 2013, at 11:28 AM, Steve Mills wrote: > I have an NSOutlineView in a window. One of the columns uses an > NSPopUpButtonCell (a subclass actually). The menu contains 1 menu item, which > shows an NSView. This window also has an NSPopUpButton whose menu contains 1 > menu item, which al

Re: crash in

2013-05-24 Thread Michael Crawford
TextWrangler (http://www.barebones.com/) will tell you whether the document contains characters that aren't permitted by the encoding when you do a Save As. Note that DTD validators are incapable of validating the "payload" of XML elements (the free tags between the opening and closing tag) as wel

Re: The same view used in 2 menu items

2013-05-24 Thread Steve Mills
On May 24, 2013, at 13:40:34, Seth Willits wrote: > Although two menus won't be visible at the same time, you don't control when > the view is placed into the menu's view and apparently Cocoa can't sort it > out on its own. Using the same menu for both popups will work. Just set the > same me

Crash in CFPreferencesSetAppValue

2013-05-24 Thread tridiak
Sorry about noise. Just realised CFPreferences doesn't like NSURL/CFURL. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)li