Re: xCode troubles

2019-05-15 Thread Peter Hudson
Hi John As things are now working ok again - the relevant files have been refreshed - there is probably little point in my sending you the project. If the problem occurs again, I’ll send the project over for you to have a look at. All the best Peter > On 15 May 2019, at 05:45, John McC

Re: xCode troubles

2019-05-14 Thread Peter Hudson
on the right. Hence any editing of GUI was impossible. Richard Charles’s response earlier in the day has however fixed it. He suggested removing a couple of files in the project bundle. Many thanks Peter > On 14 May 2019, at 23:05, Jens Alfke wrote: > > > >> On May

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
. But alas, no GUI tools for me ! Any ideas on how to fix this would be most welcome. MacOS 10.14.3 / xCode 10.2 / swift project for macOS Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

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
Hi Alex After some thought i cast the object in question to (id) and the compiler was happy, and the program runs. Guess i need to read up on this aspect of the language. Peter > On 28 Mar 2019, at 23:29, Alex Zavatone wrote: > > Not sure if this is a right answer, but what happe

Trouble assigning datasource and delegate to an instance of NSTableView

2019-03-28 Thread Peter Hudson
view in question I get the following warning :- Assigning to 'id _Nullable' from incompatible type 'ImportTool *__strong’ Any suggestions gratefully received ! Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

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: iOS AVPlayerViewController and AVPlayer Documentation/Help

2017-05-11 Thread Peter Tomaselli
Hi Dave, not at all an expert on this but I think if you want “windowed” playback on iOS you need to abandon AVPlayerViewController and instead use your “own” AVPlayer instance pointed at an arbitrary AVPlayerLayer (which some custom view of yours would host). Never done it myself but searching on

Re: Problem Playing Movie File on iOS

2017-05-09 Thread Peter Tomaselli
e wrote: > > > On 9 May 2017, at 15:41, Peter Tomaselli wrote: > > > > I don't believe you can present a view controller in viewDidLoad. I am > away from my computer, so I can't confirm right now, but I do not believe > the presenting view controller's

Re: Problem Playing Movie File on iOS

2017-05-09 Thread Peter Tomaselli
I don't believe you can present a view controller in viewDidLoad. I am away from my computer, so I can't confirm right now, but I do not believe the presenting view controller's view is in the view hierarchy yet during viewDidLoad (exactly as the error message says). On Tue, May 9, 2017 at 8:31 AM

Re: Basic Question about iOS View Controllers/Storyboards

2017-05-08 Thread Peter Tomaselli
setup, but stops short of setting up anything magical. Then, after a quick perusal of segues, navigation controller wiring, and basic storyboard stuff in the IB docs, you should be off and running. Just my opinion, Peter On Mon, May 8, 2017 at 9:05 AM, Dave wrote: > HI All, > > I’ve bee

Re: Debugging strange memory ( ? ) problem

2017-04-30 Thread Peter Hudson
Thanks Ken. I'll give zombies a go. What's baffling is that the pointer has remained the same - in terms of address - but the type of underlying object appears to be different. Not sure how that could happen. Peter > On 30 Apr 2017, at 21:28, Ken Thomases wrote: > >&g

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
selector sent to instance 0x2155180 It seems that my table view has changed into an array ! Any suggestions on how to approach this greatly appreciated. Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

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
e and is quite straightforward. Also, the break point is so predictable. And I find it strange that the table view address should become exactly the same as it had in a previous document that has been closed. Usually dangling pointer problems yield erratic results with forever changing values. Peter &

Weird pointer change...

2017-04-27 Thread Peter Hudson
suggestions gratefully received ! 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 Help/Unsubscribe/Update

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

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread Peter Edberg
> On Mar 8, 2017, at 1:44 PM, David Reed wrote: > > >> On Mar 8, 2017, at 4:35 PM, Peter Edberg wrote: >> >> >>> On Mar 8, 2017, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: >>> >>> Message: 1 >>> Date: Tue, 07 Mar

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread Peter Edberg
.0. If there are processes that use decomposition according to Unicode 9 versus Unicode 2.x, or processes that don't decompose versus ones that do, then the filename bytes will be different. - Peter E ___ Cocoa-dev mailing list (Cocoa-dev@lis

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

Attributed strings - and bounding rects

2017-03-03 Thread Peter Hudson
. Any thoughts ? Peter > -- > > Message: 2 > Date: Fri, 03 Mar 2017 14:23:40 + > From: Jonathan Mitchell > To: "Cocoa-dev@lists.apple.com" > Subject: Re: Attributed strings - and bounding rects > Message-ID: <4453c98a-481c-

Re: Attributed strings - and bounding rects

2017-03-03 Thread Peter Hudson
, I do seem to remember having to tell the cell to wrap the text ….. Many thanks Peter > On 3 Mar 2017, at 13:28, Igor Ranieri wrote: > > Hi Peter. > > > Have you tried also passing `usesLineFragmentOrigin` as one of the options? > It works here. > > Here’s so

Attributed strings - and bounding rects

2017-03-03 Thread Peter Hudson
boundingRect, aRect has its width set to 60 and its height set to 18. This is not however correct for the contents of the attributed string - I would expect the height to be at least 200 or so with the width constrained to 60. Any help gratefully received. Peter

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
Many thanks for this Charles. I'll check it out. Peter > On 24 Jan 2017, at 20:11, Charles Jenkins wrote: > > There is an open specification for the file format, which will allow you to > easily (if tediously) write your own exporter. > > The spec is

PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
behaves like a Word doc ( in word ) I need to export straight to docx format. I’ve hunted around - but turned up little. Does anyone know of a library that could do it ? Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-08 Thread Peter Teeson
> On Nov 7, 2016, at 10:58 PM, Quincey Morris > wrote: > > On Nov 7, 2016, at 19:55 , Rick Mann wrote: >> >> Xcode never gives you controls for setting a class name > > Much like the Spanish Inquisition. > > (Monty Python joke, for those going “Huh?”) Nobody expects the Spanish Inquisition

Re: Prioritizing drawing of the important stuff

2016-10-29 Thread Peter Tomaselli
how the system prioritizes drawing internally, instead “sanitizing” your event stream up front based on what you know about the drawing performance characteristics downstream. Apologies if this is way off base, I have very little experience with Cocoa drawing itself. :) Peter > On Oct 29, 2

Re: Progress Indicator

2016-09-11 Thread Peter Hudson
Hi Alex I have moved the point where I start the progress indicator and, without getting into threading, its working again. Many thanks Peter > On 10 Sep 2016, at 21:02, Alex Zavatone wrote: > > Is it that the animation thread is being blocked or the thread you have to >

Progress Indicator

2016-09-10 Thread Peter Hudson
question, I guess, is how do I get out of this corner ? 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 Help

Re: Progress Indicator

2016-09-10 Thread Peter Hudson
Hi Michael Thanks for the suggestion - but I had already checked this. Peter > On 10 Sep 2016, at 16:43, Michael Mayer wrote: > > Peter - > > My apologies for the obvious suggestion but, did you make sure it is plugged > in? > progInd.hidden = false (automatical

Progress Indicator

2016-09-10 Thread Peter Hudson
run. I’ve tried removing the object from the view and dropping in a new one - and reconnecting. Everything looks fine - it appears to be connected up correctly. Any suggestions gratefully received ! Peter ___ Cocoa-dev mailing list (Cocoa-dev

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
possibilities as to what went wrong. Wondered if anyone else has experienced something similar… 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

Re: Dynamic-width Collection View

2016-08-10 Thread Peter Tomaselli
and me only being a Cocoa hobbyist). And you're quite right to perhaps not want to clutter up all your classes with that gunk if it can be avoided! Count me as one very interested to hear DTS’s suggestions if it's possible for you to share them. Cheers, Peter > On Aug 10, 201

Re: Dynamic-width Collection View

2016-08-10 Thread Peter Tomaselli
-AutoLayout I mention this again because I remember the frustration/bewilderment you are experiencing right now quite well and also did a bunch of legwork researching this. We should probably pool our resources here! Cheers, Peter ___ Cocoa-dev mailing

Re: Justification of collection cells in sections

2016-08-03 Thread Peter Tomaselli
I remain a non-expert on this topic, but my assumption has always been that the current “look” is by design. Ugly, but by design. “Equally distribute cells across the row” could be taken to mean that in the case of one cell, it belongs in the middle… [shrug] This is some of the first Cocoa code I

Re: Justification of collection cells in sections

2016-08-02 Thread Peter Tomaselli
I’ve been in the same situation too (wanting a “left-justified” flow layout) and the only way I am aware of to tackle it is to subclass UICollectionViewFlowLayout and tweak the frames yourself. Luckily this is not nearly as complicated as handling the whole layout yourself! Peter On Aug 2

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Peter Tomaselli
really “finished“ — for whatever business definition of “finished” one requires. So I don’t completely agree that this would be “shoehorning”; seems right on the money to me. Just one opinion! Cheers, Peter On Jun 28, 2016, at 6:50 PM, "Gary L. Wade" wrote: > Based on his desi

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Peter Tomaselli
In the past I’ve used NSOperation for this — wrap each request in an async NSOperation that only signals completion to its queue when its DataTask completion handler is complete. Then you can blast a bunch of them at a serial queue and they will come out serially until they are done. On Tue, Jun 2

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

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
. I have steered clear of using databases as our users are mostly individuals with little or no tech support. The idea has always been to keep things simple and maintenance free. Peter > On 4 Jun 2016, at 17:42, Jens Alfke wrote: > >

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
’ complete with icon - and hides the multiple files in the wrapper. Any suggestions / pointers gratefully recieved ! Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Storyboard weakness

2016-03-09 Thread Peter Tomaselli
UICollectionViewController (itself; as a class) essentially a convenience? Or is there functionality obtainable via UICollectionViewController only? Peter > On Mar 9, 2016, at 6:04 PM, Rick Mann wrote: > > There's a severe weakness in Storyboards for which I'm hoping a better > solution

Re: Two Problems

2016-02-12 Thread Peter Tomaselli
You'll probably need a… what is it nowadays? “@objc”? annotation on that func? Apologies that I can't be more specific, I am on my Grim Windows Work Computer atm… On Fri, Feb 12, 2016 at 11:31 AM, Charles Jenkins wrote: > Alex, > > The suggestion of changing the graphic’s name is a terrific one.

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread Peter Teeson
-of-mac-apps-vulnerable-to-hijacking-and-a-fix-is-elusive/?comments=1&post=30615899 <http://arstechnica.com/security/2016/02/huge-number-of-mac-apps-vulnerable-to-hijacking-and-a-fix-is-elusive/?comments=1&post=30615899>> It found 6 apps in Applications…. respect… Peter > On

Re: UISearchBar covers status bar

2016-02-02 Thread Peter Tomaselli
Isn't this just the thing (apologies, can't actually try it right now) where the easiest way to keep the status bar tidy when doing a modal presentation is to actually present your modal controller inside its own navigation controller, even if you don't plan on pushing anything onto it? Again, apo

Re: Subclassing/Override question

2016-01-04 Thread Peter Tomaselli
sing something up here), that's just that you need to declare it. Peter On Mon, Jan 4, 2016 at 11:40 AM, Jeff Kelley wrote: > Hi Dave, > > For myClassA, you will always have to cast the return value to > myClassB if you know that’s what will be returned. For a

Re: Environment woes executing scripts from my OS X app

2015-12-16 Thread Peter
> 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.com/mailman/options/cocoa-dev/magnard%40web.de > > This email sent to magn...

Re: Custom time picker

2015-12-02 Thread Peter Tomaselli
One of the WWDC videos from back when collection views were introduced tackles a similar situation (a “flickable” cover-flow-ish collection view layout that centers at the end). Sorry that I can't be more specific about which video. > On Dec 2, 2015, at 7:22 PM, Eric Dolecki wrote: > > I need

Re: Self and associated type requirements (yes again!)

2015-11-30 Thread Peter Tomaselli
(whatever that might mean). Your actual classes here could conform to both, but the view only need care about the first one. If you actually do want _both_ of those things together, that's where (and I could be way off here; I have only casually read up on this stuff) techniques of "type

Re: Multiple simultaneous UIAlertControllers

2015-11-05 Thread Peter Tomaselli
Pretty sure the WWDC 2015 video on NSOperations tackles a similar scenario in a quite elegant way. That might be worth investigating. Peter > On Nov 5, 2015, at 6:42 PM, Carl Hoefs wrote: > > A queue of what? I would think that if only a single alert view can be > presented at

Re: Can't get dynamically sized Collection View cells

2015-10-02 Thread Peter Tomaselli
[re-sending because my last message had size problems] Nifty way of demoing there, Roland, I’ll have to try that! I’d still be curious to know if anyone is using this feature “in production”. Because those crashes, problems rotating (at least for me), and also this, which I definitely ran into

Re: NSTableView - Detecting when user has finished scrolling

2015-10-01 Thread Peter Hudson
Legacy code I’m afraid Graham - written some years ago. I simply want it to look better for now while we're getting on with the re-write. The new version indeed uses view-based table views - and works a lot better. Peter > On 1 Oct 2015, at 01:11, Graham Cox wrote: > > >

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Peter Tomaselli
reaks down here—you also need a "sizing cell" or some other way of performing the auto layout measurements yourself and then providing them to the delegate. I would love to be told otherwise here! But I don't believe I’ve ever seen it done. Peter > On Sep 30, 2015, at 5:41

Re: NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread Peter Hudson
to calculate the placement of lines is too long - hence the system, on occasions, will not draw them. So, what I want to do is watch for when the user has finished scrolling and then do a display on the tableview - which works fine. Thanks for your suggestion - I’ll check them out. Peter

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: Can't get dynamically sized Collection View cells

2015-09-29 Thread Peter Tomaselli
I most desire so if you gain any insights more, or if anyone else can chime in with better advice, I am very interested too. — Peter [0] https://github.com/Peterbing/CV-AutoLayout > On Sep 29, 2015, at 6:29 PM, Doug Hill wrote: > > I’m trying to implement a collection with dynamica

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
, the app will crash. Zombies tells me that the table view is accessing the previously set datasource for data - not the one that I have just installed ( and confirmed as being the data source ). Any suggestions gratefully recieved. Peter ___ Cocoa

Re: swift: windowControllerDidLoadNib called twice

2015-09-25 Thread Peter Teeson
FWIW before the nice hardcover books there was a single (as I recall) loose leaf binder with documentation for the 128K. > On Sep 25, 2015, at 1:06 PM, Raglan T. Tiger wrote: > > >> On Sep 23, 2015, at 1:08 PM, Boyd Collier wrote: >> >> I’ve been writing code for Macs off-and-on for 30 years

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
Thanks for replying Jens.  Your suggestion is why I thought the crash was odd - the window has not been closed and is still there.  This problem occurs after I have run a sheet - might that be part of the issue?  Peter   Original Message   From: Jens Alfke Sent: Thursday, 24 September 2015 17

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: Work with AddressBook without blocking the main thread

2015-04-25 Thread Peter Tomaselli
. I may still try this with a private thread and a runloop, just for fun. :) Peter > On Apr 25, 2015, at 10:27 PM, Roland King wrote: > > I had trouble believing there was an API left which was really thread-tied - > until I convinced myself that this one really is. I wonder why

Re: Work with AddressBook without blocking the main thread

2015-04-25 Thread Peter Tomaselli
like that’s maybe what is available on OS X already? But this is an iPhone app. I’ll check out the threading stuff; sounds like that might be fun to try anyway. Appreciate the help, Peter > On Apr 25, 2015, at 9:23 PM, Quincey Morris > wrote: > > On Apr 25, 2015, at 17:54 , Pet

Re: Work with AddressBook without blocking the main thread

2015-04-25 Thread Peter Tomaselli
me): is it NSThread I should look at? Appreciate it, Peter > On Apr 25, 2015, at 8:33 PM, Quincey Morris > wrote: > > On Apr 25, 2015, at 17:06 , Peter Tomaselli <mailto:peter.tomase...@icloud.com>> wrote: > >> The crux of my problem

Work with AddressBook without blocking the main thread

2015-04-25 Thread Peter Tomaselli
—without blocking the UI. Thanks for any suggestions! Peter [0] http://stackoverflow.com/a/10844781 ___ 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: Weird crashes on Yosemite

2015-03-13 Thread Peter Hudson
I don't get to the situation where I would need to set the delegate to zero - the user isn't closing the app down when the crashes occur. The whole relationship of delegate and datasource is setup when a project is opened - and remains the same throughout. ‎It simply hoses along the w

Re: Weird crashes on Yosemite

2015-03-13 Thread Peter Hudson
datasource or delegate for this table. That said, the suggestions are interesting - I will try out the debugging ideas. My problem is, I can’t reproduce a crash to order ! This one happened after the user had been working for three hours. Peter > On 13 Mar 2015, at 14:55, Steve Mills wr

Weird crashes on Yosemite

2015-03-13 Thread Peter Hudson
anywhere in the stack, and then we get an invalid access from some Cocoa method or other. Any comments or suggestions gratefully received ! Peter Process: WattWenn [1915] Path: /Applications/WattWenn.app/Contents/MacOS/WattWenn Identifier:WattWenn

Re: What's up with the Cocoa Text System?

2015-01-23 Thread Peter
Maybe this sounds silly, but have you tried to increase the keyboard repeat frequency in the system preferences. I once was silly enough not to. ___ Peter Hartmann Am 23.01.2015 um 14:50 schrieb Charles Jenkins : > For some reason, typing text on a Mac has always had a little bit

Re: dispatch_source does not work

2014-11-04 Thread Peter
http://stackoverflow.com/questions/12343833/cocoa-monitor-a-file-for-modifications/26304208#26304208 has some info on this. ___ Peter Hartmann mailto:hphartm...@justmail.de Am 05.11.2014 um 07:50 schrieb Gerriet M. Denkmann : > I want to monitor a file for changed content. > P

Debugging com.apple.LaunchServices.DatabaseChange messages

2014-10-26 Thread Peter
Minutes, sometimes 10 seconds even. How could I possibly debug this? I read up on QuickLook put couldn’t find an appropriate entry point. Any pointers are welcome. Thanks, Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

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
, the cursor moves but the divider stays put. Other split views, in the same window, can be resized without any trouble. Any suggestions gratefully received ! Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Subject:

2014-08-07 Thread Peter Edberg
44597.150374101.4d345...@webmail.messagingengine.com> > Content-Type: text/plain > > On Thu, Aug 7, 2014, at 03:28 PM, Peter Edberg wrote: >> Seems like the bug here is trying to save the file as WindowsLatin1. > > I'm not sure how you intended this to be interpreted. If you mean

Re: NSNumberFormatter negative and NSWindowsLatin1

2014-08-07 Thread Peter Edberg
This is intentional. The character is ‘−’ U+2212 MINUS SIGN with UTF-8 representation 0xE2 0x88 0x92. Many locales prefer the proper Unicode minus sign for negative numbers, instead of using U+002D HYPHEN-MINUS. Seems like the bug here is trying to save the file as WindowsLatin1. - Peter E On

Re: Setting Scheme Environment variable

2014-06-06 Thread Peter Teeson
Sorry please ignore wrong group. On 2014-06-06, at 12:33 PM, Peter Teeson wrote: > Is there some special way to set Scheme Environment variables? > I have tried to set the TERM variable as follows > Name TERM Value xterm-256color > > But the process info shows the environment as

Setting Scheme Environment variable

2014-06-06 Thread Peter Teeson
up in process info. So what am I doing wrong? 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 Help

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Peter Teeson
terim progress reporting and debugging) will be Obj-C, mainly Cocoa. The main process does not need a GUI. Last time I seriously used Obj-C++ was back in the Xcode 3 days so just wanted to find out what has changed. Jo's answer is most comforting. Peter ___

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Peter Teeson
work to Cocoa from Carbon. There are some newer language features > such as ARC which I'm not using, so I don't know what effect that might have. > Essentially though, Xcode 5 and Objective-C++ are no problem. > > Regards, >

Re: Preserving undo actions on deleted targets

2014-01-30 Thread Peter Teeson
On 2014-01-30, at 2:20 PM, Kyle Sluder wrote: > … > Apple will do what Apple will do, whenever Apple feels like it. If you > want to avoid rejections, avoid referencing private API at all. > > --Kyle Sluder Alternatively avoid the App store (and save 30%)….. ___

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Peter Teeson
ference counting memory management with C++’s memory management. We cannot call delete on an Objective-C object, and we cannot call -release on a C++ variable. True even with ARC. (4) When do we need to use ifdef cplusplus or ifdef objc these days? etc... thanks Peter _

Xcode 5 & Obj-C++

2014-01-29 Thread Peter Teeson
and C++. But other than a command line template, which is for C++, there does not seem to be one for ObjC++. Are there any current docs that my search didn't find and that you can point me to? Or advice you can offer to help me? TIA and respec

Corrected: Bug: Availability bindings on NSTextField cause attached NSNumberFormatter to fail

2014-01-10 Thread Peter
Hi Jonathan, my bad, sorry for the confusion! You are right, it is an NSTextField. Find the corrected text below. Am 10.01.2014 um 10:24 schrieb jonat...@mugginsoft.com: > Hi Peter > > You say NSTextView. Do you mean NSTextField? > > Can we take a look at your demo project

Bug: Availability bindings on NSTextView cause attached NSNumberFormatter to fail

2014-01-10 Thread Peter
, which I could send to interested parties (or upload to GitHub). I have never done that before, but I intend to file a radar, unless somebody finds a fundamental flaw in my setup. Thanks! Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-09, at 6:42 PM, Peter Teeson wrote: > On 2014-01-09, at 3:58 PM, Ken Thomases wrote: >> On Jan 9, 2014, at 2:35 PM, Peter Teeson wrote: >>> Like many others I'm trying to use one - namely Look Up In Dictionary. >>> Except in my case I want to do it

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-09, at 3:58 PM, Ken Thomases wrote: > On Jan 9, 2014, at 2:35 PM, Peter Teeson wrote: >> Like many others I'm trying to use one - namely Look Up In Dictionary. >> Except in my case I want to do it from within my app, not manually. > On 2014-01-07, at 11:18

Re: Help to debug NSPerformService..

2014-01-09 Thread Peter Teeson
On 2014-01-07, at 11:18 PM, Ken Thomases wrote: > On Jan 7, 2014, at 9:57 PM, Peter Teeson wrote: >> In my app I have this: >> @interface Guess : NSTextField // populated programmatically >> … >> -(void)check; // method to programatically use the Service "Lo

Help to debug NSPerformService..

2014-01-07 Thread Peter Teeson
n on Validating Services Menu Items. There is some sample code but I do not understand how to apply this for my very simple case. I looked in the TextEdit code but did not find anything helpful. Please explain what I should do to programatically accomplish this simple "Look Up In D

Re: Set up an editable view based NSTableView programmatically - how to?

2014-01-07 Thread Peter
action methods feeds the edited value back into the data source. Works very nicely and fits my bill even better than inline editing. Still, your proof of concept is extremely useful! Am 08.01.2014 um 01:01 schrieb Willeke : > > Op 7 jan 2014, om 16:52 heeft Peter het volgende gesc

  1   2   3   4   5   6   7   8   9   10   >