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

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

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

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

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

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

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

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

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

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

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

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

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-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
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: PDF to Word ( docx) Conversion

2017-01-25 Thread Peter Hudson
CX, because with it you can easily define and export powerful > styles. I mean, you could also create high-quality .DOC files, but you’d have > to use an external package to do it, not the functions Apple provides. > >> On Tue, Jan 24, 2017 at 3:58 PM, Peter Hudson wrote: >> Hi J

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
I was trying to avoid having to go to Direct RTF markup. But as you say, it may be the answer. Peter > On 24 Jan 2017, at 21:13, Jens Alfke wrote: > > >> On Jan 24, 2017, at 12:58 PM, Peter Hudson wrote: >> >> I wondered about RTF - but I've built everyt

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
Hi Jens I wondered about RTF - but I've built everything into a view and I can't see a method on NSView to produce rtf. I've done it previously with, I think, an NSText. Peter > On 24 Jan 2017, at 20:27, Jens Alfke wrote: > > >> On Jan 24, 2017, at

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
how far off you are from the mark. > > Those tools are at: > https://www.microsoft.com/en-us/download/details.aspx?id=30425 > > >> On Tue, Jan 24, 2017 at 2:54 PM, Peter Hudson wrote: >> Hi All >> >> I have a report that I currently print to PDF. >&

PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
Hi All I have a report that I currently print to PDF. Its a simple table with text ( varying fonts ) in the table. I have tried to convert it to docx with a variety of proprietary converters. One or two of them do a reasonable job. But the bottom line is, I think, to get a Word doc that really b

Re: Progress Indicator

2016-09-11 Thread Peter Hudson
dispatch the request to start? > > On Sep 10, 2016, at 10:16 AM, Peter Hudson wrote: > >> Hi Steve >> >> I think your suggestion is going the right way. >> >> I have ( unwittingly ) moved the processing about and the calls to the >> progress in

Progress Indicator

2016-09-10 Thread Peter Hudson
Hi Steve I think your suggestion is going the right way. I have ( unwittingly ) moved the processing about and the calls to the progress indicator are now happening while the thread is blocked for processing ( and non of the interface is being updated until the processing is done ) Next questi

Re: Progress Indicator

2016-09-10 Thread Peter Hudson
ly converted to swift) > > Regards, Michael > > > > On Sep 10, 2016, at 10:38 AM, Peter Hudson <mailto:peter.hud...@me.com>> wrote: > > Hi All > > I have a simple view with a progress indicator in it. > Simple circular type - indeterminate. > &

Progress Indicator

2016-09-10 Thread Peter Hudson
Hi All I have a simple view with a progress indicator in it. Simple circular type - indeterminate. I start it with [progInd startAnimation:self]; I end it with[progInd stopAnimation:self]; After a couple of years of running just fine, it now simply does not appear onscreen at all - or r

Re: Odd File Truncation

2016-09-07 Thread Peter Hudson
___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Odd File Truncation

2016-09-07 Thread Peter Hudson
Hi All One of my apps saves its’ files to an Airport Time Capsule. Bog standard doc based app - using the usual framework methods to save its data. This works extremely well. And then, one day, the file that was saved was 20 bytes long instead of the usual 5 MBytes. I’m sure there are a host of

Re: NSFileWrapper

2016-06-04 Thread Peter Hudson
Hi All Many thanks to everyone who has contributed to this thread on NSFileWrapper. I have enough insight now to do some work to see what works. Again, thanks to everybody ! Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: NSFileWrapper

2016-06-04 Thread Peter Hudson
Jens Thanks for these notes - extremely helpful. I think I will kick off with Realm and see where I get too. Peter > On 4 Jun 2016, at 20:36, Jens Alfke wrote: > > >> On Jun 4, 2016, at 9:51 AM, Peter Hudson > <mailto:peter.hud...@me.com>> wrote: >>

Re: NSFileWrapper

2016-06-04 Thread Peter Hudson
Hi Jens “If your app’s performance is suffering because of large files, then use streams instead, and try to only read the part of the file that’s necessary.” Could you point me at some material about this technique ? It sounds very interesting. I will check out the database approach as well.

Re: NSFileWrapper

2016-06-04 Thread Peter Hudson
t how to ‎get an icon of my choosing associated with it.  Peter   Original Message   From: Mike Abdullah Sent: Saturday, 4 June 2016 17:12 To: Peter Hudson Cc: cocoa-dev@lists.apple.com List Subject: Re: NSFileWrapper It sounds like you want your file format to be what is known as a “package”. I

NSFileWrapper

2016-06-04 Thread Peter Hudson
Hi All Our users have now decided to push the bounds of the system - resulting in file sizes that are getting to large for comfort. It would be possible to fairly easily split the current file format into two and store it as two separate units. This is a particularly interesting solution as h

Re: NSTableView - Detecting when user has finished scrolling

2015-10-01 Thread Peter Hudson
;> On 30 Sep 2015, at 10:20 pm, Peter Hudson wrote: >> >> As the user scrolls one of the table views, the system does not render all >> the details in the rows correctly. >> The most obvious one :- I draw my own lines between rows - inserting >> separator line

Re: NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread Peter Hudson
to accomplish ? > > Sent from my iPhone > >> On Sep 30, 2015, at 7:45 PM, Peter Hudson wrote: >> >> I would like to know when the user has finished scrolling one of my table >> views. >> I can’t see any obvious API to do it. ( I’ve checked the scrollers

NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread Peter Hudson
I would like to know when the user has finished scrolling one of my table views. I can’t see any obvious API to do it. ( I’ve checked the scrollers, views etc which are part of an NSTableView) All suggestions gratefully received. Peter ___ Cocoa-dev

Re: NSTableView update issue

2015-09-26 Thread Peter Hudson
. Regards Peter > On 26 Sep 2015, at 11:43, Ken Thomases wrote: > > On Sep 26, 2015, at 5:13 AM, Peter Hudson wrote: > >> I have an NSTableView in my app which has started to behave differently on >> 10.10. >> >> I periodically change the datasource and deleg

NSTableView update issue

2015-09-26 Thread Peter Hudson
I have an NSTableView in my app which has started to behave differently on 10.10. I periodically change the datasource and delegate to the table view ( which is on screen ) This has worked perfectly up until recently. After having changed the datasource/delegate to the table view, I confirm th

Re: Odd Crash

2015-09-24 Thread Peter Hudson
‎I had a feeling something has changed about the order the OS does things in. I'll go hunting ! Many thanks.  Peter   Original Message   From: Scott Ribe Sent: Thursday, 24 September 2015 17:15 To: Peter Hudson Cc: Jens Alfke; cocoa-dev@lists.apple.com Subject: Re: Odd Crash On Sep 24,

Re: Odd Crash

2015-09-24 Thread Peter Hudson
:03 To: Peter Hudson Cc: cocoa-dev@lists.apple.com Subject: Re: Odd Crash This is a pretty common type of crash. You’ve got an NSTableView whose dataSource has been dealloced, so it tried to call the dataSource and crashed. If you want to catch this in the debugger, turn Zombie Objects on. Most

Odd Crash

2015-09-24 Thread Peter Hudson
Suddenly, after a long period of clean operation, I start to this crash. I’ve copied the last section of the crash report from the user. Any suggestions appreciated. Peter Date/Time: 2015-09-24 15:38:49.222 +0100 OS Version:Mac OS X 10.10.4 (14E46) Report Version:

Re: Weird crashes on Yosemite

2015-03-13 Thread Peter Hudson
ay.  Peter   Original Message   From: Lee Ann Rucker Sent: Friday, 13 March 2015 19:57 To: Peter Hudson Cc: Steve Mills; ms_li...@shiftoption.com; Cocoa dev Subject: Re: Weird crashes on Yosemite Your code may not have changed, but Apple's code has - are you still using reference counti

Re: Weird crashes on Yosemite

2015-03-13 Thread Peter Hudson
ote: > > On Mar 13, 2015, at 09:46:36, Peter Hudson wrote: > >> Crashed Thread:0 Dispatch queue: com.apple.main-thread >> >> Exception Type:EXC_BAD_ACCESS (SIGSEGV) >> Exception Codes: KERN_INVALID_ADDRESS at 0x

Weird crashes on Yosemite

2015-03-13 Thread Peter Hudson
Hi All I have ongoing crash problems - and I have no idea where to start looking around for an answer ! The application is built using Xcode 6.1 on 10.10.2. ( and was running on a new Macbook Pro running 10.10.2 ) The users have given me a detailed account of what they were doing when the

Re: Cocoa-dev Digest, Vol 11, Issue 479

2014-09-04 Thread Peter Hudson
Thanks Kyle - I'll take a look at the release notes. They seem a bit voluminous ! Peter On Tue, Sep 2, 2014, at 11:39 PM, Peter Hudson wrote: > Hi All > > I have recently migrated a project to xCode 5.1.1 and OSX 10.9.4 > > In one of the windows of the app I

Resizing issue with NSSplitView

2014-09-02 Thread Peter Hudson
Hi All I have recently migrated a project to xCode 5.1.1 and OSX 10.9.4 In one of the windows of the app I have an NSSplitView. Previously, I could adjust the relative size of the splits in Interface Builder - and when I ran the app, the splits would appear as I set them. Mysteriously, Inter

Printing Problem

2013-07-28 Thread Peter Hudson
All I have assembled several pages of text as RTF in an offscreen NSTextView - outputTextView in the code below. As the text was assembled in the view, I have marked the end of each page with a \page symbol in the RTF. As I have added each piece of text into the view I have determined how

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Peter Hudson
Thanks Scott. That opens up some interesting possibilities for managing the development of the app going forward. As you say, shame Apple sets such a sloppy example. Peter On 10 Jul 2013, at 16:04, Scott Ribe wrote: > On Jul 10, 2013, at 8:58 AM, Peter Hudson wrote: > >> Bea

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Peter Hudson
just the name of the app. Is there a good reason to follow the suggested naming convention ? Peter On 10 Jul 2013, at 14:33, Mike Abdullah wrote: > > On 10 Jul 2013, at 11:25, Peter Hudson wrote: > >> I am trying to create an application support directory for my app

Bundle Identifiers - and application support directory

2013-07-10 Thread Peter Hudson
I am trying to create an application support directory for my app ( on 10.8.3 ) I am using this piece of example code ( from the docs ) :- NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier]; NSFileManager*fm = [NSFileManager defaultManager]; NSURL*dirPath = nil;

Re: Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
Andy Thanks for this, It helps me fix another problem I have. Peter On 30 Jun 2013, at 20:48, Andy Lee wrote: > > On Jun 30, 2013, at 2:44 PM, Kyle Sluder wrote: > >> On Jun 30, 2013, at 6:04 AM, Peter Hudson wrote: >> >>> >>> I then append

Re: Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
Thanks Kyle. That has fixed it. Peter On 30 Jun 2013, at 20:39, Kyle Sluder wrote: > On Jun 30, 2013, at 12:33 PM, Peter Hudson wrote: > >> I can't find any reference to NSControlTextColor anywhere. > > Sorry, I'm referring to +[NSColor controlTextColor]. A

Re: Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
I can't find any reference to NSControlTextColor anywhere. Peter On 30 Jun 2013, at 19:44, Kyle Sluder wrote: > On Jun 30, 2013, at 6:04 AM, Peter Hudson wrote: > >> >> I then append a second attributed string to the first - with very similar >> attribute

Attributed strings in NSTableViews

2013-06-30 Thread Peter Hudson
Hi All I create an attributed string - setting the background color, font colour and a paragraph style to range left. When this cell is displayed in an NSTable view it works exactly as I would hope. Also, when the row is selected the system reverses out the foreground font color as usual. I the

Re: File Path String From Save Panel

2013-03-04 Thread Peter Hudson
Thanks Iain and Lee Ann path was the method I needed. Peter On 4 Mar 2013, at 20:38, Lee Ann Rucker wrote: > > On Mar 4, 2013, at 8:25 AM, Peter Hudson wrote: > >> I recover the path string from a Save Panel like so :- >> >> NSArray *pathComponents =

File Path String From Save Panel

2013-03-04 Thread Peter Hudson
I recover the path string from a Save Panel like so :- NSArray *pathComponents = [[sp URL] pathComponents]; When I put them together again to use to write a file, any spaces in the file name are turned in %20 symbols. Any suggestions what I am doing wrong ? Peter __

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
der wrote: > On Feb 24, 2013, at 12:27 PM, Peter Hudson wrote: > >> I commented out the setRequiredFileType: and all is well again. >> >> As you point out, this method is deprecated. >> >> I've never come across a deprecated method that malfunc

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
Well Quincey, your comment on the last line of code here was salient :- > NSSavePanel *sp = [NSSavePanel savePanel]; > [sp setTitle:@"Save as HTML"]; > [sp setRequiredFileType:@"html"]; I commented out the setRequiredFileType: and all is well again. As you point

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
I have built a minimal app in xCode 4.6 ( latest release ) running on 10.8.2 - and naturally the directory popup in the NSSavePanel works perfectly. I started the save panel, as before, with runModal. I have gone back to my main app and stripped the method to practically nothing but setting

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
arose. > > --Andy > > On Feb 24, 2013, at 4:26 AM, Peter Hudson wrote: > >> Here is the code for running the NSSavePanel. >> I run the panel using runModal. >> I simply never return from the runModal if I click the directory pop

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
Here is the code for running the NSSavePanel. I run the panel using runModal. I simply never return from the runModal if I click the directory popup. Peter -(IBAction)exportDayOutOfDaysReportToHTML:(id)sender { NSSavePanel *sp = [NSSavePanel savePanel]; [sp setTitle:@"

Re: NSSavePanel problem

2013-02-23 Thread Peter Hudson
sheet ? Peter On 24 Feb 2013, at 00:35, Graham Cox wrote: > > On 24/02/2013, at 10:49 AM, Peter Hudson wrote: > >> Here is a truncated crash log - whole log exceeds dev-list max size; > > > I have seen something similar when running the save panel as a sheet attached

Re: NSSavePanel problem

2013-02-23 Thread Peter Hudson
? Did you run with zombies on? > > -- > Jon > > On Feb 23, 2013, at 6:14 PM, Peter Hudson wrote: > >> Hi All >> >> I use an NSSavePanel to save data to file in HTML format. >> This panel is run from a button in one of the panels in the app. >>

NSSavePanel problem

2013-02-23 Thread Peter Hudson
Hi All I use an NSSavePanel to save data to file in HTML format. This panel is run from a button in one of the panels in the app. The whole mechanism has been working absolutely fine for a long time - up until 10.8. I know find that if I click in the "select directory popup" that the app

Re: Cocoa-dev Digest, Vol 9, Issue 371

2012-05-28 Thread Peter Hudson
___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Re: DataSource modified while TableView is displaying data

2012-04-26 Thread Peter Hudson
of > NSMutableAray) > > - (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView > { >return self.experimentList ? [self.experimentList count] : 0; > } > > Jean > > > On 26 avr. 2012, at 11:45, Peter Hudson wrote: > >> >> Can you post your

Re: DataSource modified while TableView is displaying data

2012-04-26 Thread Peter Hudson
Can you post your code for numberOfRowsInTableView: 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 He

Can't log in to Developer Centre

2012-03-09 Thread Peter Hudson
I can't log in to my Dev Centre account. Does anyone know who to email about this ? 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-ad

Re: __PRETTY_FUNCTION__.219635

2011-12-24 Thread Peter Hudson
that with past versions of the compiler, performing this piece of nonsense produced a warning from the compiler. It was so long ago now though ….. Regards Peter On 24 Dec 2011, at 13:20, Ken Thomases wrote: > On Dec 24, 2011, at 6:11 AM, Peter Hudson wrote: > >> I have been

__PRETTY_FUNCTION__.219635

2011-12-24 Thread Peter Hudson
Hi all I have been making a few ( trivial ) changes to some code and when the app runs it grinds to a halt with an Objective-c exception and the next to last item on my stack is __PRETTY_FUNCTION__.219635 ( the top of the stack being obj_msgSend ) Anybody have any ideas on this one. I

RE: NSTableView - how to dynamically change the height of the elements? (Nick)

2011-12-14 Thread Peter Hudson
I fixed a similar problem by specifically using NSImageCell . setImageScaling: You could also try setControlSize: Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSTextField odd background colour behaviour

2011-12-10 Thread Peter Hudson
could I disappear it ? Peter On 10 Dec 2011, at 15:48, Ross Carter wrote: > Just to make sure: are you certain that the text field is not being edited > (and therefore obscured by the field editor) when you set the bg color? > > > On Dec 10, 2011, at 3:50 AM, Peter Hudson

NSTextField odd background colour behaviour

2011-12-10 Thread Peter Hudson
Hi All I have an NSTextField in an app. For some years I have set the background colour with, not unsurprisingly, setBackgroundColor: Recently I noticed that when attempting to set the BG colour instead of the whole area of the text field changing colour, I get a thin line of colour chang

Re: NSTableView - preventing user moving with mouse

2011-11-21 Thread Peter Hudson
; On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote: >> >>> I have an NSTableView whose position I want to control purely >>> programatically. >>> >>> How do I stop the user from changing its position using the mouse - >>> including two finger

Re: NSTableView - preventing user moving with mouse

2011-11-21 Thread Peter Hudson
uggestions…. Peter On 21 Nov 2011, at 16:33, Kyle Sluder wrote: > On Mon, Nov 21, 2011 at 6:45 AM, Richard Somers > wrote: >> On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote: >> >>> I have an NSTableView whose position I want to control purely >>> program

NSTableView - preventing user moving with mouse

2011-11-21 Thread Peter Hudson
Hi All I have an NSTableView whose position I want to control purely programatically. How do I stop the user from changing its position using the mouse - including two finger swipe gestures ? Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: NSTableView and scrollToPoint:

2011-11-19 Thread Peter Hudson
Thanks for this Kyle - I have however already tried scrollPoint: and I get the same result. ? Peter On 19 Nov 2011, at 17:33, Kyle Sluder wrote: > On Nov 19, 2011, at 2:06 AM, Peter Hudson wrote: > >> Hi All >> >> I use scrollToPoint:to position a table

NSTableView and scrollToPoint:

2011-11-19 Thread Peter Hudson
Hi All I use scrollToPoint:to position a table. When I then use the mouse to scroll the table, as soon as I start the drag the table moves sharply to what looks like the location it was at before scrollToPoint: was sent. Is there something I should do after scrollToPoint: ? xCode

NSTableView data source issue - code moving from xcode 3 to xcode 4

2011-10-09 Thread Peter Hudson
Hi There For a long time ( in xcode 3 ) when I want to access a table view data source ( in the sub class code for the table view ) I simply called [self dataSource] I would then call methods declared and implemented on the class which I new to be the datasource. This worked fine. In xcode

xCode 4 and integrated IB

2011-08-14 Thread Peter Hudson
I have an app with a large number of nib files. These have all worked very happily in xCode 3 - and function perfectly at run time. Interface Builder with xCode 3 has never produced any warnings in relation to these nib files. When I build the same project in xCode 4 I get a huge number of warn

Drawing focus rings

2011-06-18 Thread Peter Hudson
I need to draw a focus ring ( or something that looks like a focus ring ) around a group of rows in an NSTableView. Drawing a rectangle with NSBezierPath works fine - how do I make it look like a focus ring ? Peter ___ Cocoa-dev mailing list (Co

Re: Writing extremely large RTF or .doc files

2011-06-18 Thread Peter Hudson
I'm not sure quite how big you data is - but I write big data sets to file by writing all the data into an NSTextView - and then get the RTF data from the view. There is also quite a lot of scope for combining separate RTF files. You can see how to do this by renaming your RTF file with a

Re: Enable a button once text is added to textfield

2011-05-04 Thread Peter Hudson
In IB set the button to be disabled. Set yourself up a delegate for the text field and let the delegate respond to -(void)controlTextDidChange:(NSNotification *)aNotification It is also convenient if the delegate has a pointer to the button as well. When the delegate receives this notificat

Drag and drop issue - latest track pad and 10.6

2011-05-03 Thread Peter Hudson
Hi All Have a piece of drag and drop code that has worked perfectly for a long time on Intel laptops with the trackpad and mouse button. One of our users with the latest type of Macbook Pro ( integrated trackpad and mouse ) can produce problems in this drag and drop code. The result of th

Re:Resolving a crash address to position in code

2011-04-18 Thread Peter Hudson
Hi Jerry Many thanks for theSTEPS TO SYMBOLIZE A CRASH DUMP. I'll pick my way through it. 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

Re: Resolving a crash address to position in code

2011-04-18 Thread Peter Hudson
Thanks for this Nick - I'll give it a go ! I've hunted around on the web for material on using dwarfdump - but can't find anything much. Any suggestions appreciated ! Peter On 18 Apr 2011, at 21:17, Nick Zitzmann wrote: On Apr 18, 2011, at 2:09 PM, Peter Hudson wrote

Re: Resolving a crash address to position in code

2011-04-18 Thread Peter Hudson
What is the dSYM - and this output was produced from a debug build. Peter On 18 Apr 2011, at 20:38, Nick Zitzmann wrote: On Apr 18, 2011, at 1:26 PM, Peter Hudson wrote: Hi all, I seem to have acquired a repeatable crash problem - which has only just appeared. The log looks like this

Resolving a crash address to position in code

2011-04-18 Thread Peter Hudson
Hi all, I seem to have acquired a repeatable crash problem - which has only just appeared. The log looks like this :- OS Version: 10.4.11 (Build 8S2167) Report Version: 4 PID: 223 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0x5079 Thread 0 Cras

NSView/NSTableView question

2010-12-05 Thread Peter Hudson
If the size of the table permits, when the table is empty, have the datasource return for one cell the string "Drop Files Here" When the user has dropped a file, you can adjust what the datasource returns to not show the string. Further games with setting the row height and using an attribut

Re: Detecting if you're being debugged

2010-03-18 Thread Peter Hudson
Thanks Jeremy, Kyle and Jonathon for your comments. ___ 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 Help/Unsubsc

Detecting if you're being debugged

2010-03-18 Thread Peter Hudson
Technical Q&A QA1361 Detecting the Debugger Does this code report on my app being debugged by any third party, even when the app has been stripped of symbols ? Would it work irrespective of the debugging tool used ? Peter ___ Cocoa-dev mailing lis

Fwd: Re : Proper way to initialize application support file

2010-02-18 Thread Peter Hudson
Begin forwarded message: From: Peter Hudson Date: 18 February 2010 12:46:55 GMT To: Graham Cox Subject: Re: Re : Proper way to initialize application support file I started out this way to avoid exactly the problem you get from requiring users to move critical files around. Most of our

Re : Proper way to initialize application support file

2010-02-18 Thread Peter Hudson
I'm getting confused. It seems that any files that are 'essential to the running of the app' are placed in the bundle. It also seems that any files that are 'essential to the running of the app', if they are in the bundle, must not be modified. The type of files which I put in the bund

Re : Proper way to initialize application support file

2010-02-18 Thread Peter Hudson
" Files that are necessary should be inside your app bundle, usually." I put some files into the app bundle which were essential for the app to run - but also needed to be modified at run time. The first time our app was installed on a server ( for a number of users to have access

Re: NSTableView in NSSplitView

2009-11-24 Thread Peter Hudson
Try the following:- Get rid of the current split view ( Unembed objects from the menu ) Drag an NSBox into your window - set it to have no border or title as appropriate and set it so that it can change size horizontally and vertically. Drop your table view and button onto this box - arrange

Re : Handling calculations with many decimal places

2009-11-03 Thread Peter Hudson
You may find using binary coded decimal is a useful. If you google for binary coded decimal library for osx you get a number of libraries. I thought this one was interesting. http://mac.softpedia.com/get/Development/Libraries/libpbcd.shtml Peter __

  1   2   >