Re: cell-based NSTableView, NSArrayController and first responder

2017-07-12 Thread Martin Hewitson
> On 12 Jul 2017, at 14:32, Ken Thomases wrote: > > On Jul 12, 2017, at 4:52 AM, Martin Hewitson > wrote: >> >> 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 NS

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 14:22, Shane Stanley wrote: > > On 14 Apr 2015, at 10:05 pm, Martin Hewitson > 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 word like “

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
> On 14 Apr 2015, at 13:30, Shane Stanley wrote: > > On 14 Apr 2015, at 9:19 pm, Martin Hewitson > 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 of the new strin

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Martin Hewitson
> On 14 Apr 2015, at 13:11, Shane Stanley wrote: > > On 14 Apr 2015, at 8:39 pm, Mark Wright 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 NSTextStorage >> out without notifying the text

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]]; [sel

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 Origina

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 t

Re: App store rejection, inappropriate sandboxing

2014-10-29 Thread Martin Hewitson
gt; > I'd check there first before a DTS > > Iain > > > >> On 29 Oct 2014, at 7:01 am, Martin Hewitson >> wrote: >> >> Dear list, >> >> I recently submitted updates to three different apps on the app store. All >> three we

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 func

Re: PDFView not rendering pages on scroll

2013-12-23 Thread Martin Hewitson
inspiration… Martin On 24 Nov 2013, at 11:47 am, Martin Hewitson 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 compile

Re: PDFView not rendering pages on scroll

2013-11-24 Thread Martin Hewitson
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 wrote: > Michael, > > Thanks for the clue.

Re: No Accessibility for Many Status Items

2013-11-15 Thread Martin Hewitson
On 16 Nov 2013, at 07:12 am, Jerry Krinock 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 User > Swit

Re: PDFView not rendering pages on scroll

2013-11-15 Thread Martin Hewitson
t 08:54 pm, Michael Babin wrote: > On Nov 14, 2013, at 7:09 AM, Martin Hewitson > 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. >> >> S

Re: PDFView not rendering pages on scroll

2013-11-14 Thread Martin Hewitson
what it is? Many thanks, Martin On 04 Nov 2013, at 06:33 pm, Martin Hewitson 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 been com

Re: PDFView not rendering pages on scroll

2013-11-04 Thread Martin Hewitson
… Martin On 02 Nov 2013, at 08:00 am, Martin Hewitson 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 PDF

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: NSTableview row-based, not redrawing on 10.9

2013-10-26 Thread Martin Hewitson
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 wrote: > Implementing this doesn’t seem

Re: core data merge errors on 10.9

2013-10-26 Thread Martin Hewitson
l, I wonder why this happens in 10.9 but not in 10.6-10.8. Cheers, Martin On 25 Oct 2013, at 08:46 pm, Martin Hewitson 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 so

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 > 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

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 merg

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

Re: Setting key equivalent for menus depending on window

2013-10-20 Thread Martin Hewitson
lp and thoughts. Cheers, Martin On 20 Oct 2013, at 01:21 pm, Martin Hewitson wrote: > > On 20 Oct 2013, at 01:15 am, Kyle Sluder wrote: > >> Rather than rely on intercepting responder chain-based validation, wouldn't >> it be much easier and more reliable to make

Re: Setting key equivalent for menus depending on window

2013-10-20 Thread Martin Hewitson
* if so, for the reason Uli pointed out), set the >> shortcuts to whatever you want them to be in that case. For example, you >> could do this (which is why I made those "update" methods class methods): >> >> - (void)handleWindowDidResignMainNotification:(NSNotificati

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 wrote: > On Oct 19, 2013, at 1:32 PM, Martin Hewitson > 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 that get’s >>

Re: Setting key equivalent for menus depending on window

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

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 wrote: > > On 19 Oct 2013, at 14:27, Andy Lee wrote: >> On Oct 19, 2013, at 6:58 AM, Martin Hewitson >> wrote: >>> Main Window with tabs: >>> close (cmd-shift-w) &g

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 t

Re: Correct usage of NSTextView and NSFindBar

2013-10-11 Thread Martin Hewitson
: > > On Sep 20, 2013, at 10:15 PM, Martin Hewitson > 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 ed

Re: Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
urn [[self.textStorage layoutManagers][0] textContainers][0]; } Is there a better way to do all this? Many thanks, Martin On Sep 21, 2013, at 06:52 AM, Martin Hewitson wrote: > Ah, that's very useful information. I actually maintain multiple > NSTextStorage instances, one for each file th

Re: Correct usage of NSTextView and NSFindBar

2013-09-20 Thread Martin Hewitson
r that the string changed? Any way around that? Many thanks, Martin On Sep 20, 2013, at 07:37 PM, Kevin Perry wrote: > > On Sep 20, 2013, at 10:00 AM, Martin Hewitson > wrote: > >> Dear list, >> >> I have an editor app which presents a list of files that can

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.

NSToolbar's setShowsBaselineSeparator

2013-08-14 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 if

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 t

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 do

Re: NSTask interrupt exception

2013-07-25 Thread Martin Hewitson
statements around following your suggestions, and get them to send me the output. Thanks again for your time, Martin On Jul 25, 2013, at 04:40 PM, Scott Ribe wrote: > On Jul 25, 2013, at 8:24 AM, Martin Hewitson > wrote: > >> Dear list, >> >> I have a couple of u

NSTask interrupt exception

2013-07-25 Thread Martin Hewitson
back 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-51

Re: core data lightweight migration woes

2013-07-17 Thread Martin Hewitson
took me ages to see 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 wrote: > OK, I tried commenting out the setMetadataForStoreAtURL: part, but still it > fails. >

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 wrote: > Yes, alas, alas I have tried all of that and checked all setting

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
clean build > (or in my case for iOS, also deleted the app 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 > wrote: > >> >> On Jun 18, 2013, a

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
erformed 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 > wrote: > >> The code is below. Anything look suspicious the

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
]; } } return result; } On Jun 18, 2013, at 05:04 PM, Dave Fernandes wrote: > What does your > configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error: > do? > > On 2013-06-18, at 5:09 AM, Martin Hewitson wrote: > >> Another questi

Re: core data lightweight migration woes

2013-06-18 Thread Martin Hewitson
md 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 wrote: > cc'ing the list this time… > > On 2013-06-18, at 2:26 AM, Martin Hewitson wrote: > >> >> On Jun 18, 2013, at 08:

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,

Re: core data lightweight migration woes

2013-06-17 Thread Martin Hewitson
On Jun 18, 2013, at 08:08 AM, Jerry Krinock wrote: > > On 2013 Jun 17, at 21:13, Martin Hewitson 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-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 Kr

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 t

Re: NSSharingService and default mail client

2013-06-02 Thread Martin Hewitson
On May 21, 2013, at 04:35 PM, Martin Hewitson wrote: > > On May 21, 2013, at 4:30 PM, Fritz Anderson wrote: > >> [I'd accidentally posted my reply off-list. Bringing it back.] >> >> The times I've autogenerated emails, I did so without thinking of al

Re: crash in

2013-05-25 Thread Martin Hewitson
On May 24, 2013, at 08:15 PM, Chris Ridd wrote: > > 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

Re: crash in

2013-05-24 Thread Martin Hewitson
e wrote: > > 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 o

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 cau

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: NSSharingService and default mail client

2013-05-21 Thread Martin Hewitson
eliably send a mail (with attachments) then I'll be most delighted. Cheers, Martin > > — F > > > On 21 May 2013, at 12:52 AM, Martin Hewitson > wrote: > >> Hi Fritz, >> >> I did take a look at the delegate callbacks, and >> -sharingSe

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 me

Re: Field editor in view-based table

2013-04-30 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 ed

Field editor in view-based table

2013-04-12 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

Re: cocoa -draggingImageComponents not called

2013-04-11 Thread Martin Hewitson
, Martin Hewitson 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 NSTableCellVi

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 -drawBackgrou

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 wrote: > On 07.04.2013, at 10:26, Martin Hewitson wrote: >>

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 adva

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 that

Re: ARC Release too soon

2013-03-16 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 a

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 win

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.) > > F

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 proces

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 whi

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 -tearD

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' -windowWillClo

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

2013-01-22 Thread Martin Hewitson
moving that override (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 wrote: > > On 14, Jan, 2013, at 03:31 PM, Jerry Krinock wrote: > >>> Will -autorelease work with ARC? >> >

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 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 do th

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

2013-01-14 Thread Martin Hewitson
ll wrong on 10.8, 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 wrote: > >> 2) Whenever I do [NSTreeController selectedObjects] I seem to end wi

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

2013-01-12 Thread Martin Hewitson
0:17.714.616 0 AppKit -[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 wrote: > OK, I tried with the MOC's undoManager set to nil, but

Re: Tracking object references

2013-01-12 Thread Martin Hewitson
On 12, Jan, 2013, at 10:49 PM, Ken Thomases wrote: > On Jan 12, 2013, at 11:34 AM, Martin Hewitson wrote: > >> On 12, Jan, 2013, at 12:13 PM, Mike Abdullah >> wrote: >> >>> On 12 Jan 2013, at 09:01, Martin Hewitson >>> wrote: >>> >

Re: Tracking object references

2013-01-12 Thread Martin Hewitson
On 12, Jan, 2013, at 12:13 PM, Mike Abdullah wrote: > > On 12 Jan 2013, at 09:01, Martin Hewitson wrote: > >> Dear list, >> >> I'm still struggling to find the cause of a "CoreData could not fulfil a >> fault" error on saving an NSPersist

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 obj

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 wrote: > > Am 10.01.2013 um 18:38 schrieb Martin Hewitson: > >> >>

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 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 >> ent

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 wrote: > > On 9, Jan, 201

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 wrote: > > On 8 Jan 2013, at 05:53, Martin Hewitson wrote: > >> >> On Jan 7, 2013, at 08:44 PM, Mike Abdullah wrote: >> >>> >>> On 7 Jan 2013, at 16:35, Martin Hewitson wrote: >>>

Re: PDFView drawPage called often after selecting text

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

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 window]

Re: PDFView drawPage called often after selecting text

2013-01-08 Thread Martin Hewitson
On Jan 8, 2013, at 09:21 AM, Kyle Sluder wrote: > On Jan 7, 2013, at 9:16 AM, Martin Hewitson > wrote: > >> >> On 7, Jan, 2013, at 05:52 PM, Kyle Sluder wrote: >> >>> On Jan 7, 2013, at 2:48 AM, Martin Hewitson >>> wrote: >>> &g

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:07 PM, Andy Lee wrote: > On Jan 7, 2013, at 2:10 AM, Martin Hewitson wrote: >> I've also checked that -setNeedsDisplay: is not being called on the PDFView. > > Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect: is? I check

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:16 PM, Andy Lee wrote: > On Jan 7, 2013, at 12:07 PM, Andy Lee 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: checks > whether the P

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:07 PM, Andy Lee wrote: > On Jan 7, 2013, at 2:10 AM, Martin Hewitson wrote: >> I've also checked that -setNeedsDisplay: is not being called on the PDFView. > > Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect: is? >

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 wrote: > > On 7 Jan 2013, at 16:35, Martin Hewitson wrote: > >> Hi Francisco, >> >> Thanks for the feedback! >> >> What you suggest sounds like it might fix the problem, but I'm wondering how >> b

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On 7, Jan, 2013, at 05:52 PM, Kyle Sluder wrote: > On Jan 7, 2013, at 2:48 AM, Martin Hewitson > 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 of -draw

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
t out of my depth here. 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 wrote: > Dear list, > > I have an app which has a main split vi

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 displayi

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 c

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 -t

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 wrote: > On Nov 10, 2012, at 1:50 AM, Martin Hewitson > wrote: > >> Dear

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 lay

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 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 docum

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-31 Thread Martin Hewitson
27;t be much wrong with the entitlements 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 wrote: > > > On Oct 26, 2012, at 10:35 PM, Martin

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-29 Thread Martin Hewitson
tin On 29, Oct, 2012, at 07:45 PM, Martin Hewitson wrote: > > On 29, Oct, 2012, at 07:27 PM, "Stephen J. Butler" > wrote: > >> On Mon, Oct 29, 2012 at 12:49 PM, Martin Hewitson >> wrote: >>> But com.apple.security.scripting-targets is not a temporar

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-29 Thread Martin Hewitson
On 29, Oct, 2012, at 07:27 PM, "Stephen J. Butler" wrote: > On Mon, Oct 29, 2012 at 12:49 PM, Martin Hewitson > wrote: >> But com.apple.security.scripting-targets is not a temporary entitlement, is >> it? I thought this was the recommended way of communicating bet

  1   2   3   4   >