Re: cell-based NSTableView, NSArrayController and first responder

2017-07-12 Thread Martin Hewitson
> On 12 Jul 2017, at 14:32, Ken Thomases <k...@codeweavers.com> wrote: > > On Jul 12, 2017, at 4:52 AM, Martin Hewitson <martin.hewit...@aei.mpg.de> > wrote: >> >> I have a new bug in an application which I believe has only appeared in >> 10.12. >

cell-based NSTableView, NSArrayController and first responder

2017-07-12 Thread Martin Hewitson
Dear list, I have a new bug in an application which I believe has only appeared in 10.12. I have a cell-based NSTableView backed by an NSArrayController, and the (new) problem I have is that the editing of a cell ends after the first keystroke. It looks as if first responder is resigned, but I

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
On 14 Apr 2015, at 13:30, Shane Stanley sstan...@myriad-com.com.au wrote: On 14 Apr 2015, at 9:19 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: But if it fails for the first subsequent search, then the crashes will still happen if the old search results are out of range

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
On 14 Apr 2015, at 13:11, Shane Stanley sstan...@myriad-com.com.au wrote: On 14 Apr 2015, at 8:39 pm, Mark Wright blue.bucon...@virgin.net wrote: It would seem that in both your cases NSTextView should be fully aware of all this by itself. Perhaps the problem is in switching the

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
On 14 Apr 2015, at 14:22, Shane Stanley sstan...@myriad-com.com.au wrote: On 14 Apr 2015, at 10:05 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Hmm, are you sure about this? I was just able to produce one. In my first text storage I have a long string and search for a common

Re: Getting at NSTextFinder from text view

2015-04-13 Thread Martin Hewitson
Hi Shane, The way I’ve been doing this is to keep hold of my own text finder in my NSTextView subclass: self.textFinder = [[NSTextFinder alloc] init]; then to set it up like this: [self.textFinder setClient:self]; [self.textFinder setFindBarContainer:[self enclosingScrollView]];

Re: NSTextView and Syntax Highlighting

2014-12-19 Thread Martin Hewitson
I’m using temporary attributes for TeXnicle (LaTeX editor), but as others have said, it doesn’t work if you need bold etc. Anyway, you can see the source at github: https://github.com/martinhewitson/TeXnicle You need to look in TeXnicle/TeXnicle/TeXEditor/TextView/TeXColoringEngine.m

UITableView - distinguish selection from drill-down

2014-11-07 Thread Martin Hewitson
Dear list, I’m trying to find a good idiom for allowing the user to select an item from a hierarchical tree of items. The items are categories, and categories can contain sub-categories, etc. This is easy to present using a UITableView and segues. But in this particular part of the UI, I want

App store rejection, inappropriate sandboxing

2014-10-29 Thread Martin Hewitson
Dear list, I recently submitted updates to three different apps on the app store. All three were rejected due to: This app uses one or more entitlements which do not have matching functionality within the app. Apps should have only the minimum set of entitlements necessary for the app to

Re: App store rejection, inappropriate sandboxing

2014-10-29 Thread Martin Hewitson
there first before a DTS Iain On 29 Oct 2014, at 7:01 am, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I recently submitted updates to three different apps on the app store. All three were rejected due to: This app uses one or more entitlements which do not have

Re: PDFView not rendering pages on scroll

2013-12-23 Thread Martin Hewitson
On 24 Nov 2013, at 11:47 am, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Following up on this, I was able to compile my test app so that it runs on 10.6.8. And indeed the bug is still there. Very strange. This is a most trivial test app - load a pdf into a pdfview. When compiled on 10.9

Re: PDFView not rendering pages on scroll

2013-11-24 Thread Martin Hewitson
(they remain blank) on 10.6.8. I tried enabling and disabling the core animation layer for the PDFView and also its superview, but to no effect. I guess it’s time to use a DTS ticket. Cheers, Martin On 16 Nov 2013, at 08:01 am, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Michael, Thanks

Re: PDFView not rendering pages on scroll

2013-11-15 Thread Martin Hewitson
, Michael Babin mba...@orderndev.com wrote: On Nov 14, 2013, at 7:09 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Continuing the discussion with only myself, so far…. I had the idea to make a trivial test app which just has a PDFView and a “Load” button. So I created the app

Re: No Accessibility for Many Status Items

2013-11-15 Thread Martin Hewitson
On 16 Nov 2013, at 07:12 am, Jerry Krinock je...@ieee.org wrote: Can anyone explain why, when navigating between Status Items in the menu bar with the right and left arrow keys, the loop wraps on the left when you get to the first non-Apple status item, and wraps on the right with the Fast

Re: PDFView not rendering pages on scroll

2013-11-14 Thread Martin Hewitson
it is? Many thanks, Martin On 04 Nov 2013, at 06:33 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Further info: compiling my app with SDK 10.8 under Xcode 5.0.1 on Mavericks still produces a binary that doesn’t work on 10.6.8 (regarding unrendered pdf pages). How can this be? I have

Re: PDFView not rendering pages on scroll

2013-11-04 Thread Martin Hewitson
… Martin On 02 Nov 2013, at 08:00 am, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I have an app which uses a PDFView to display (not surprisingly) a PDF. If I compile the app with the 10.9 SDK then I see two new 'features': 1) I implement -drawPagePost: in my PDFView

PDFView not rendering pages on scroll

2013-11-02 Thread Martin Hewitson
Dear list, I have an app which uses a PDFView to display (not surprisingly) a PDF. If I compile the app with the 10.9 SDK then I see two new 'features': 1) I implement -drawPagePost: in my PDFView subclass to draw my own highlight/focus ring around the PDF pages. This does not get updated when

Re: core data merge errors on 10.9

2013-10-26 Thread Martin Hewitson
this happens in 10.9 but not in 10.6-10.8. Cheers, Martin On 25 Oct 2013, at 08:46 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I have two different core data apps, both of which are exhibiting similar behaviour in that they sometimes (for some changes in some properties

Re: NSTableview row-based, not redrawing on 10.9

2013-10-26 Thread Martin Hewitson
an ugly flash of black when the tableview first appears, but at least the rows which get scrolled into view are drawn properly. This feels really icky, and I shouldn’t need to be doing this, but…. Martin On 25 Oct 2013, at 09:07 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Implementing

NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Martin Hewitson
Dear list, I have a view-based tableview. In the row views there are some textfields which are a subclass of NSTextField. Since moving to 10.9, the textfields which are in rows which are out of view when the table loads are rendered all black when those rows are scrolled into view. This is new

core data merge errors on 10.9

2013-10-25 Thread Martin Hewitson
Dear list, I have two different core data apps, both of which are exhibiting similar behaviour in that they sometimes (for some changes in some properties) can’t save the MOC. Here is an example error I get when using [moc save:error] Error Domain=NSCocoaErrorDomain Code=133020 Could not

Re: NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Martin Hewitson
On Oct 25, 2013, at 12:41 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I have a view-based tableview. In the row views there are some textfields which are a subclass of NSTextField. Since moving to 10.9, the textfields which are in rows which are out of view when the table

Re: Setting key equivalent for menus depending on window

2013-10-20 Thread Martin Hewitson
*)notif { if ([NSApp mainWindow] == nil) { [NSWindow updateShortcutForCloseMenuItem:_closeMenuItem]; [NSWindow updateShortcutForCloseTabMenuItem:_closeTabMenuItem]; } } --Andy On Oct 19, 2013, at 2:32 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: I guess

Re: Setting key equivalent for menus depending on window

2013-10-20 Thread Martin Hewitson
2013, at 01:21 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: On 20 Oct 2013, at 01:15 am, Kyle Sluder k...@ksluder.com wrote: Rather than rely on intercepting responder chain-based validation, wouldn't it be much easier and more reliable to make some object the delegate of all

Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
Dear list, I have an app with tabs and I’m trying to change the default 'close' keyboard equivalent for only the main window which has the tabs. I’d like to have Main Window with tabs: close (cmd-shift-w) close tab (cmd-w) All other windows: close (cmd-w) close

Re: Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
to all who replied. Cheers, Martin On 19, Oct, 2013, at 02:46 pm, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 19 Oct 2013, at 14:27, Andy Lee ag...@mac.com wrote: On Oct 19, 2013, at 6:58 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Main Window with tabs: close

Re: Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
and every window in the app. I hope that’s not the case…. Martin On 19 Oct 2013, at 07:28 pm, Martin Hewitson martin.hewit...@aei.mpg.de wrote: OK, so the idea is, + validateMenuItem in app delegate gets a first shot at setting the keyboard shortcuts + I override validateMenuItem in my

Re: Setting key equivalent for menus depending on window

2013-10-19 Thread Martin Hewitson
On 19, Oct, 2013, at 08:59 pm, Michael Babin mba...@orderndev.com wrote: On Oct 19, 2013, at 1:32 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: I guess I didn’t understand correctly since my app delegate does not get asked to validate the Close menu item. So far the only thing

Re: Correct usage of NSTextView and NSFindBar

2013-10-11 Thread Martin Hewitson
...@apple.com wrote: On Sep 20, 2013, at 10:15 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Actually, I got this wrong. I swap out the textstorage in the textview by calling setTextView on the textContainer which I get from the textStorage that belongs to the file instance being edited

Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
Dear list, I have an editor app which presents a list of files that can be edited. Selecting a file displays the text contents in an NSTextView subclass. On 10.7 and later the app supports using the FindBar. Searching the currently displayed text works fine the first time the find bar is used.

Re: Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
that the string changed? Any way around that? Many thanks, Martin On Sep 20, 2013, at 07:37 PM, Kevin Perry kpe...@apple.com wrote: On Sep 20, 2013, at 10:00 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I have an editor app which presents a list of files that can be edited

Re: Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
] textContainers][0]; } Is there a better way to do all this? Many thanks, Martin On Sep 21, 2013, at 06:52 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Ah, that's very useful information. I actually maintain multiple NSTextStorage instances, one for each file that's being managed, and swap

NSToolbar's setShowsBaselineSeparator

2013-08-15 Thread Martin Hewitson
Dear list, I've been using NSToolbar's -setShowsBaselineSeparator: to remove the dark gray line below the toolbar (because I have Safari-like tabs below the toolbar). This is working nicely on 10.8, but on 10.6.8, there is a white line left in place of the dark gray base line. It's almost as

Algorithm for editor bookmarks

2013-08-13 Thread Martin Hewitson
Dear list, I distribute a LaTeX editor and I have a feature whereby the user can 'bookmark' a place in a particular source file by clicking in the editor ruler, much like you do in Xcode to make a breakpoint. At the moment the bookmark is 'fixed' to the line number in the file, rather than to

NSTableView - differences in click or arrow selection

2013-07-26 Thread Martin Hewitson
Dear list, This is a strange one. I have a table view which lists a set of themes. When a theme is selected a textview in another part of the app has its font and colors updated. This all works nicely except for one strange 'feature'. When selecting a theme with the arrow keys (moving up or

NSTask interrupt exception

2013-07-25 Thread Martin Hewitson
from -isRunning. Anyone have any ideas or pointers? Many thanks, Martin Martin Hewitson Albert-Einstein-Institut Max-Planck-Institut fuer Gravitationsphysik und Universitaet Hannover Callinstr. 38, 30167 Hannover, Germany Tel: +49-511-762

Re: NSTask interrupt exception

2013-07-25 Thread Martin Hewitson
, and get them to send me the output. Thanks again for your time, Martin On Jul 25, 2013, at 04:40 PM, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 25, 2013, at 8:24 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I have a couple of users reporting exceptions

Re: core data lightweight migration woes

2013-07-17 Thread Martin Hewitson
that there were two extra entities in the XML store. In my defence, the DTS guy didn't spot it either :) Cheers, Martin On Jun 18, 2013, at 09:18 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: OK, I tried commenting out the setMetadataForStoreAtURL: part, but still it fails. Maybe I'm

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
On Jun 18, 2013, at 08:08 AM, Jerry Krinock je...@ieee.org wrote: On 2013 Jun 17, at 21:13, Martin Hewitson martin.hewit...@aei.mpg.de wrote: I did try making a mapping model (this is something I've done in the past in other apps) but I got the same error message. Oh, well

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
I just had another thought I have another core data model in the app. I wonder if the NSPersistentDocument infrastructure is picking up the wrong model? As I'm looking through the project, I realise I don't know how the document knows which core data model to use OK, back to the

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
is loaded doesn't fix the problem. I'm at a bit of a loss what to try next Martin On Jun 18, 2013, at 08:38 AM, Dave Fernandes dave.fernan...@utoronto.ca wrote: cc'ing the list this time… On 2013-06-18, at 2:26 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: On Jun 18, 2013, at 08

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
]; } } return result; } On Jun 18, 2013, at 05:04 PM, Dave Fernandes dave.fernan...@utoronto.ca wrote: What does your configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error: do? On 2013-06-18, at 5:09 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
performed light migration many, many times, and this is the first time it has taken me more than a couple of minutes to resolve. Thanks, Martin On 2013-06-18, at 11:14 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: The code is below. Anything look suspicious there? Thanks, Martin

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
from the simulator and rebuilt it so it installed the app fresh in the simulator). HTH, Dave On Jun 18, 2013, at 11:37 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: On Jun 18, 2013, at 05:26 PM, Dave Fernandes dave.fernan...@utoronto.ca wrote: Looks pretty standard

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
OK, I tried commenting out the setMetadataForStoreAtURL: part, but still it fails. Maybe I'm going to have to use one of my precious DTS tickets for this. Martin On Jun 18, 2013, at 08:32 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Yes, alas, alas I have tried all

core data lightweight migration woes

2013-06-17 Thread Martin Hewitson
Dear list, Something's not right with the world. I wanted to add a new boolean flag to my NSPersistentDocument core data model. So I selected the last version (11) and added a new version based on that (via the Editor menu). Then I carefully selected another file and then the version 12 model

Re: core data lightweight migration woes

2013-06-17 Thread Martin Hewitson
Hi Jerry, I did try making a mapping model (this is something I've done in the past in other apps) but I got the same error message. Is the idea that the auto-migration magic will pick up the mapping model and use it, if it finds it? Many thanks, Martin On Jun 17, 2013, at 10:42 PM, Jerry

Re: NSSharingService and default mail client

2013-06-02 Thread Martin Hewitson
On May 21, 2013, at 04:35 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: On May 21, 2013, at 4:30 PM, Fritz Anderson fri...@manoverboard.org wrote: [I'd accidentally posted my reply off-list. Bringing it back.] The times I've autogenerated emails, I did so without thinking

Re: crash in

2013-05-25 Thread Martin Hewitson
On May 24, 2013, at 08:15 PM, Chris Ridd chrisr...@mac.com wrote: On 24 May 2013, at 18:31, Martin Hewitson martin.hewit...@aei.mpg.de 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

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 martin.hewit...@aei.mpg.de 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

Re: crash in

2013-05-24 Thread Martin Hewitson
: On May 24, 2013, at 9:11 AM, Martin Hewitson martin.hewit...@aei.mpg.de 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

Re: NSSharingService and default mail client

2013-05-21 Thread Martin Hewitson
) then I'll be most delighted. Cheers, Martin — F On 21 May 2013, at 12:52 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Hi Fritz, I did take a look at the delegate callbacks, and -sharingService:didFailToShareItems:error: is called when the default client

NSSharingService and default mail client

2013-05-19 Thread Martin Hewitson
Dear list, I'm exploring the use of NSSharingService for emailing (sharing) documents from within my app. It's working fine if the system's default mail client is set to Mail.app. But if it's set to, for example, Thunderbird, nothing happens. I also confirmed the same behavior from the Share

Re: Field editor in view-based table

2013-05-01 Thread Martin Hewitson
Kyle, 1) to get the field editor to show I have to single click the text field and wait about 1s. Do you have a double-click action specified for the table view? If so, NSTableView needs to wait to determine whether to send the click to the hit view. Nope. 2) The field editor only

Field editor in view-based table

2013-04-13 Thread Martin Hewitson
Dear list members, I have an NSTextField in a row view of a view-based tableview and I see the following behavior: 1) to get the field editor to show I have to single click the text field and wait about 1s. 2) The field editor only shows if I click on a part of the text field where this is

cocoa -draggingImageComponents not called

2013-04-11 Thread Martin Hewitson
Dear list, I'm continuing my adventures in view-based tableview land. I've got drag-n-drop working nicely, but I'd like to improve the image that's shown during a drag. Currently I just get the subviews of my NSTableCellView subclass, but I don't get the background that's drawn in

Re: cocoa -draggingImageComponents not called

2013-04-11 Thread Martin Hewitson
, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I'm continuing my adventures in view-based tableview land. I've got drag-n-drop working nicely, but I'd like to improve the image that's shown during a drag. Currently I just get the subviews of my NSTableCellView subclass

Animating row height changes for view-based table view

2013-04-07 Thread Martin Hewitson
Dear list, I'm trying to put together a UI which has a view-based table view. Each item in the table view has advanced settings which can be accessed by toggling an 'advanced' button on the item's view. The row then expands to reveal the advanced items. I have a couple of problems: 1) The

Re: Animating row height changes for view-based table view

2013-04-07 Thread Martin Hewitson
Uli, thanks a lot for the detailed thoughts! I'll have a go. Not sure how to schedule an animated scroll, but hopefully google will help me there :) Many thanks again, Martin On 7, Apr, 2013, at 04:04 PM, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 07.04.2013, at 10:26, Martin

choose core data store file at app launch

2013-03-29 Thread Martin Hewitson
Dear list, I remember seeing the functionality in some apps where one can hold the option key while launching an app to allow the user to choose which app data store to launch. So is this a core-data app functionality that's already built in to the frameworks, or does one need to implement

Re: ARC Release too soon

2013-03-17 Thread Martin Hewitson
If it's for windows where the number of them is under user control, then I typically add them to a an array (which is a strongly retained property) then you can either listen for window closing notifications and remove them, or if the user may open the same window again, then you can check the

NSCollectionView and key view loop

2013-03-10 Thread Martin Hewitson
Dear list, I've been struggling with this for hours and I think it really shouldn't be this hard, so I thought I'd post the problem. I have an app that contains an NSCollectionView. Each item in the collection view has three text fields. I have finally managed to get the first textfield to be

Interpreting glyph layout exception

2013-02-24 Thread Martin Hewitson
Dear list, I maintain an editor app (for LaTeX) and I have a report from a user of strange behaviour when using a particular font (Brill: http://www.brill.com/author-gateway/brill-fonts). The error seems to happen when the user is editing text via more than one NSTextView (multiple editor

Re: Deadlock in core data fetch?

2013-01-27 Thread Martin Hewitson
1) How can I interpret the call graph shown below? I'm finding it difficult to extract from that who's blocking whom. 2) Is there something glaringly wrong with the strategy I sketched above? (I guess so, since it took a lot of experimentation to get it working at all.) From your

Deadlock in core data fetch?

2013-01-26 Thread Martin Hewitson
(sent again because it was too long and got held for moderation) Dear list, Forgive my potential use of bad terminology and ignorance here. I'm about to talk about concurrency in the context of core data, and I suspect I'm doing things terribly wrong. I have an app which does background

Zombie object being messaged - why?

2013-01-25 Thread Martin Hewitson
Dear list, In a document based app running under ARC, I've been struggling for an eternity to get to the bottom of an occasional crash which happens when closing a document. I've spent a huge amount of time working on my -tearDown procedure which I call in my NSDocument subclass'

Re: Zombie object being messaged - why?

2013-01-25 Thread Martin Hewitson
Hi Keary, I appreciate your response. I'll try to answer below. In a document based app running under ARC, I've been struggling for an eternity to get to the bottom of an occasional crash which happens when closing a document. I've spent a huge amount of time working on my -tearDown

Re: Zombie object being messaged - why?

2013-01-25 Thread Martin Hewitson
This was held for moderation for being too large (for some reason), so I've trimmed it and resent it. Should I interpret this as a window trying to message the object? Am I somehow over-reasling? Under ARC, I can't, right? If it's not coming from a window, how can I figure out which

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-22 Thread Martin Hewitson
(which is not needed anyway) fixes the problem. Simple when you know! Best wishes, Martin On Jan 15, 2013, at 05:41 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: On 14, Jan, 2013, at 03:31 PM, Jerry Krinock je...@ieee.org wrote: Will -autorelease work with ARC? I don't think

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-15 Thread Martin Hewitson
On 14, Jan, 2013, at 03:31 PM, Jerry Krinock je...@ieee.org wrote: Will -autorelease work with ARC? I don't think so. I didn't realize you were using ARC. I suppose you could opt out of ARC in your Method Replacement file, in order to compile that -autorelease. Could you hint how to

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-14 Thread Martin Hewitson
, but it's swept under the carpet, whereas on 10.6.8 it isn't. Your mission is to find a workaround. Maybe - see above. On 2013 Jan 12, at 23:29, Martin Hewitson martin.hewit...@aei.mpg.de wrote: 2) Whenever I do [NSTreeController selectedObjects] I seem to end with an additional

Tracking object references

2013-01-12 Thread Martin Hewitson
Dear list, I'm still struggling to find the cause of a CoreData could not fulfil a fault error on saving an NSPersistentDocument (see other mail thread coredata count not fulfill fault after object delete). I'm wanting to check if some other object has a strong reference to the deleted

Re: Tracking object references

2013-01-12 Thread Martin Hewitson
On 12, Jan, 2013, at 12:13 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 12 Jan 2013, at 09:01, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I'm still struggling to find the cause of a CoreData could not fulfil a fault error on saving an NSPersistentDocument

Re: Tracking object references

2013-01-12 Thread Martin Hewitson
On 12, Jan, 2013, at 10:49 PM, Ken Thomases k...@codeweavers.com wrote: On Jan 12, 2013, at 11:34 AM, Martin Hewitson wrote: On 12, Jan, 2013, at 12:13 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 12 Jan 2013, at 09:01, Martin Hewitson martin.hewit...@aei.mpg.de wrote

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-12 Thread Martin Hewitson
-[NSTreeNode dealloc] 135 0x1031c4bd0 FolderEntity_Folder_Release 3 00:17.714.623 0 Foundation -[NSAutoreleasePool drain] On 12, Jan, 2013, at 07:20 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: OK, I tried with the MOC's undoManager set to nil, but the problem

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-11 Thread Martin Hewitson
OK, I tried with the MOC's undoManager set to nil, but the problem persists. Most annoying. I'll keep digging and post back if I discover anything. Martin On 10, Jan, 2013, at 06:46 PM, Peter magn...@web.de wrote: Am 10.01.2013 um 18:38 schrieb Martin Hewitson: On 10, Jan, 2013, at 06

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-10 Thread Martin Hewitson
On 9, Jan, 2013, at 04:26 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 8 Jan 2013, at 05:53, Martin Hewitson wrote: On Jan 7, 2013, at 08:44 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 7 Jan 2013, at 16:35, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Hi

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-10 Thread Martin Hewitson
And I forgot to mention: the persistent store seems to get saved since when I restart the app (it's unusable after the CoreData error) the removed entities are not present. Curiouser and curiouser. Martin On 10, Jan, 2013, at 06:05 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-10 Thread Martin Hewitson
On 10, Jan, 2013, at 06:25 PM, Peter magn...@web.de wrote: Am 10.01.2013 um 18:06 schrieb Martin Hewitson: And I forgot to mention: the persistent store seems to get saved since when I restart the app (it's unusable after the CoreData error) the removed entities are not present

Re: PDFView drawPage called often after selecting text

2013-01-09 Thread Martin Hewitson
On Jan 9, 2013, at 09:25 AM, Kyle Sluder k...@ksluder.com wrote: On Jan 8, 2013, at 11:43 PM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Some interesting points/problems - if I use -drawPage: instead, then the focus ring has the wrong size and overlaps the displayed pages

Re: PDFView drawPage called often after selecting text

2013-01-08 Thread Martin Hewitson
On Jan 8, 2013, at 09:21 AM, Kyle Sluder k...@ksluder.com wrote: On Jan 7, 2013, at 9:16 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: On 7, Jan, 2013, at 05:52 PM, Kyle Sluder k...@ksluder.com wrote: On Jan 7, 2013, at 2:48 AM, Martin Hewitson martin.hewit...@aei.mpg.de

Re: PDFView drawPage called often after selecting text

2013-01-08 Thread Martin Hewitson
Andy, Kyle, Thank you both for your assistance on this. I've got something working now which doesn't cause the responsiveness issues and even looks visually more pleasant. Here's the solution: - (void) drawPagePost:(PDFPage *)page { [super drawPagePost:page]; if ([[self

PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
Dear list, I have an app which has a main split view. In the left panel there is a text editor (NSTextView), in the right panel there is a PDFView. I find that when typing in the text view, the -drawPage: method of the PDFView is called about once every 200ms but only if the PDFView is

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
. Is there perhaps a better way I can achieve this focus ring without triggering this (recursive?) -drawPage: behaviour? All ideas welcome, Martin On Jan 7, 2013, at 11:10 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I have an app which has a main split view. In the left panel

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-07 Thread Martin Hewitson
Hi Francisco, Thanks for the feedback! What you suggest sounds like it might fix the problem, but I'm wondering how best to do this. Currently I'm just calling -remove: on the tree controller to delete the selected object(s). Of course, if I clear the selection first, then -remove: doesn't do

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On 7, Jan, 2013, at 05:52 PM, Kyle Sluder k...@ksluder.com wrote: On Jan 7, 2013, at 2:48 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Actually, at the risk of having a conversation with myself, I've narrowed the issue down to the actions I'm taking within my override

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 08:44 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 7 Jan 2013, at 16:35, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Hi Francisco, Thanks for the feedback! What you suggest sounds like it might fix the problem, but I'm wondering how best to do

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:07 PM, Andy Lee ag...@mac.com wrote: On Jan 7, 2013, at 2:10 AM, Martin Hewitson matin.hewit...@aei.mpg.de wrote: I've also checked that -setNeedsDisplay: is not being called on the PDFView. Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:16 PM, Andy Lee ag...@mac.com wrote: On Jan 7, 2013, at 12:07 PM, Andy Lee ag...@mac.com wrote: It does seem weird that drawPage: is getting called when you aren't even interacting with the PDFView. Come to think of it, this is *really* weird since your drawPage:

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:07 PM, Andy Lee ag...@mac.com wrote: On Jan 7, 2013, at 2:10 AM, Martin Hewitson matin.hewit...@aei.mpg.de wrote: I've also checked that -setNeedsDisplay: is not being called on the PDFView. Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect

coredata count not fulfill fault after object delete

2013-01-06 Thread Martin Hewitson
Dear list, I have an app which presents folders and files in a tree structure. I'm using an NSTreeController and core data to keep track of the relationships between the files and folders. The ProjectItem entity has a 'children' relationship which is to-many with the same entity and a 'parent'

PDFKit two page display differs from Preview

2012-12-08 Thread Martin Hewitson
Dear list, When one uses PDFKit and PDFView to display a pdf, there are built-in view settings one can access (right-click context menu) for setting Two Pages, Two Page Continuous etc. On Preview.app, you only get View-Single Page or View-Two Pages. The issue I have is that given a PDF

delaying document close

2012-12-07 Thread Martin Hewitson
Dear list, I have a document based app which has a number of per-document background tasks fired off timers. After moving from GC to ARC the app was suffering from crashes when closing documents due to the referencing of deallocated objects. So I've gone through the whole app and implemented

Re: Templates for program output

2012-11-10 Thread Martin Hewitson
Ah, that set me off on the right track. I then also came across MGTemplateEngine, which seems to be just what I want (I need loops and logic). Thanks! Martin On 10, Nov, 2012, at 09:02 PM, Ben Gollmer bgoll...@tcnetworks.com wrote: On Nov 10, 2012, at 1:50 AM, Martin Hewitson martin.hewit

Templates for program output

2012-11-09 Thread Martin Hewitson
Dear list, I have an app which is used for compiling agendas. The output is an html page with the agenda formatted in tables, etc. Currently I just build an NSString containing all the html. Clearly this is limited. I'd like to extend the app to have templates to allow for different agenda

Re: App rejection due to app-sandboxing invalid entitlement

2012-11-01 Thread Martin Hewitson
On Nov 1, 2012, at 3:37 PM, Sean McBride s...@rogue-research.com wrote: On Thu, 1 Nov 2012 05:17:09 +0100, Martin Hewitson said: I did include a description on the resubmit. Seems it didn't help. I wrote: I'm using this entitlement to allow the app to send documents by mail from within

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-31 Thread Martin Hewitson
because they actually work. The app is sandboxed and can't send mails without the entitlements but can with them (tested on 10.7 and 10.8). Martin On Oct 31, 2012, at 08:35 PM, Curt Clifton curt.clif...@mac.com wrote: On Oct 26, 2012, at 10:35 PM, Martin Hewitson martin.hewit...@aei.mpg.de

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-29 Thread Martin Hewitson
Humph. So now what do I do? I'd rather not use one of my DTS tickets for this, especially as I feel like this should be documented, but maybe I have no choice. Anybody have any other guesses why this entitlement entry might be wrong? Thanks, Martin keycom.apple.security.scripting-targets/key

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-29 Thread Martin Hewitson
On 29, Oct, 2012, at 06:41 PM, Jayson Adams jay...@circusponies.com wrote: On Oct 29, 2012, at 5:07 AM, Martin Hewitson wrote: Humph. So now what do I do? I'd rather not use one of my DTS tickets for this, especially as I feel like this should be documented, but maybe I have no choice

  1   2   3   4   >