Re Singleton Help ...

2009-03-13 Thread Peter Hudson
I had a very similar situation using a singleton and found that I needed to remove it from the notification centre before the app died - or landed up with an odd side effect (main menu items in xCode would no longer respond to the mouse ). I fixed it by getting the app delegate to respond

Re: Need localization-proof method of transporting dates

2009-04-04 Thread Peter Hudson
When you collect your date from the date picker, are you setting the time in the date picker as well as the date ? I used a date picker - setting dd/mm/yy only - and found it producing date objects bearing unexpeced times of the given day. Naturally, these produced interesting results as they

Strange error message when trying to print

2009-04-26 Thread Peter Hudson
When I try to print a document ( to PDF ) the app can sometimes hang - and I get a long message which looks like debug printout from the OS in the debug console. The last section of the message seems to contain the crux of the problem : - Sun Apr 26 12:42:51 peter-hudsons-macbook-pro.lo

Attributed strings - and bounding rects

2017-03-03 Thread Peter Hudson
Hi All I have done the following to try to determine the rect required to draw an attributed string( and thus the height of a row in a table view - on MacOS ) I am trying to constrain my column width to 60 - and let the possible height of the row be a max of 1000. let aString = anAttributed

Re: Attributed strings - and bounding rects

2017-03-03 Thread Peter Hudson
e > > And it returns the expected size. > > > best, > elland > > >> On 3. Mar 2017, at 14:18, Peter Hudson wrote: >> >> Hi All >> >> I have done the following to try to determine the rect required to draw an >> attributed string( and thus the

Attributed strings - and bounding rects

2017-03-03 Thread Peter Hudson
Thanks to both of you for helpful code. I’m still not out of the wood yet though. Insofar as I can now determine the size of the rect to hold the attributed string, I can’t write it to the cell correctly. This is what i do :- // aString is a preprepared attributed string // Determine the he

Re: Attributed strings - and bounding rects

2017-03-04 Thread Peter Hudson
Many thanks for this detailed help Jonathan. I’ll work my way through it ! Peter > On 4 Mar 2017, at 09:54, Jonathan Mitchell wrote: > >> I’m still not out of the wood yet though. > > > Sorry. I should have provided more details. > > What I do to support table cell view wrapping is this.

Re: How do I use a NSTextBlock in an attributed string?

2017-03-09 Thread Peter Hudson
Hi Daryle I don’t know if you’ve come across this - but I found it quite useful. Text Layout Programming Guide Just Google it and its on Apples site. Best Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: How do I use a NSTextBlock in an attributed string?

2017-03-09 Thread Peter Hudson
Yes, you've got the page I thought may be helpful. I hadn't really suggested it as a considered solution to your problem. I just thought I'd mention it in case you hadn't come across it. Peter > On 9 Mar 2017, at 23:43, Daryle Walker wrote: > > >> On Mar

Weird pointer change...

2017-04-27 Thread Peter Hudson
macOS 10.12.3 Xcode 8.3 I have a very strange problem I have never come across before. I open I file in my application, do a few typical operations in it - and then shut the file. I then open another file - and do a few typical operations in it. The app then grinds to a halt with an illega

Re: Weird pointer change...

2017-04-27 Thread Peter Hudson
gt; On 27 Apr 2017, at 23:04, Quincey Morris > wrote: > >> On Apr 27, 2017, at 13:26 , Peter Hudson wrote: >> >> I open I file in my application, do a few typical operations in it - and >> then shut the file. > > I assume you mean this is a data file whose

Re: Weird pointer change...

2017-04-27 Thread Peter Hudson
> On 27 Apr 2017, at 23:44, Quincey Morris > wrote: > >> On Apr 27, 2017, at 15:27 , Peter Hudson wrote: >> >> This is a document based app. >> And it's the same table view that is affected each time. […] And I find it >> strange that the table

Debugging strange memory ( ? ) problem

2017-04-30 Thread Peter Hudson
Hi all I have a strange memory problem. My app is a typical document based app. I have one method which checks on the indexes of selected rows in a table view frequently. After this method has been called ( without a problem ) many times, the app grinds to a halt - and points the finger at t

Re: Debugging strange memory ( ? ) problem

2017-04-30 Thread Peter Hudson
Hi Steve Rather too much code to post it. Was wondering about methods to watch particular addresses of memory. Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Debugging strange memory ( ? ) problem

2017-04-30 Thread Peter Hudson
t; On Apr 30, 2017, at 2:50 PM, Peter Hudson wrote: >> >> Rather too much code to post it. >> Was wondering about methods to watch particular addresses of memory. > > Run the app under the Zombies template of Instruments. The table view, rather > than being dealloc

Demise of apple lists

2017-06-07 Thread Peter Hudson
Hi Jens Thanks for starting the new lists. I have joined ! Peter ___ 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)lists.apple.com

Trouble assigning datasource and delegate to an instance of NSTableView

2019-03-28 Thread Peter Hudson
Hi there The class I am trying to use as a datasource and delegate to an NSTableView adopts the required protocols and implements the required methods :- @interface ImportTool : NSObject etc … But when I try to assign an instance of ImportScript as datasource and delegate to the table v

Re: Trouble assigning datasource and delegate to an instance of NSTableView

2019-03-28 Thread Peter Hudson
ns if you weakify the > instance? > > Also, I suspect this is for MacOS, not iOS? > > What happens if you try to recreate this in a simple case in a fresh project? > > Alex Zavatone > > Sent from my iPhone > >> On Mar 28, 2019, at 5:58 PM, Peter Hudson

Re: Trouble assigning datasource and delegate to an instance of NSTableView

2019-03-28 Thread Peter Hudson
Very strange - the compiler is quite happy with my waywardness. Peter > On 28 Mar 2019, at 23:39, Quincey Morris > wrote: > >> On Mar 28, 2019, at 15:58 , Peter Hudson wrote: >> >> @interface ImportTool > NSEncoding> : NSObject > > You’re Doin

xCode troubles

2019-05-14 Thread Peter Hudson
Hi All xCode has just decided ( for the 20th time this week ) that I don’t deserve any UI tools in Interface Builder - as in the panel on the right hand side of the main window. I have tried everything I can think of to try to get them back - like restarting xCode, opening different files etc.

Re: xCode troubles

2019-05-14 Thread Peter Hudson
Not sure how I would trash xCode preferences. Peter > On 14 May 2019, at 11:48, Sandor Szatmari > wrote: > > Peter, > >> On May 14, 2019, at 06:39, Peter Hudson wrote: >> >> Hi All >> >> xCode has just decided ( for the 20th time this we

Re: xCode troubles

2019-05-14 Thread Peter Hudson
Thanks Richard ! Removing those two files has worked - I have my GUI tools back ! Peter > On 14 May 2019, at 15:54, Richard Charles wrote: > > >> On May 14, 2019, at 4:39 AM, Peter Hudson wrote: >> >> Hi All >> >> xCode has just decided ( for the 20t

Re: xCode troubles

2019-05-14 Thread Peter Hudson
14, 2019, at 3:39 AM, Peter Hudson wrote: >> >> xCode has just decided ( for the 20th time this week ) that I don’t deserve >> any UI tools in Interface Builder - as in the panel on the right hand side >> of the main window. I have tried everything I can think of to

Re: xCode troubles

2019-05-15 Thread Peter Hudson
all wrote: > > > > On 15 May 2019, at 0:35, Richard Charles wrote: > >>> On May 14, 2019, at 10:19 PM, John McCall wrote: >>> >>> It's unfixed because it's apparently very hard to reliably reproduce. If >>> you have reliable steps

<    1   2