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

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

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

Accessory NSPanel vanishes on first click after app launches

2011-08-02 Thread Peter
Developing for OS 10.5 and 10.6 I have an application with a main window (no documents window) and a (non-modal) accessory NSPanel I want to show only when the main window is the key window. I want the NSPanel hidden, however, when the preferences or about window comes up or when the app is in t

Accessory NSPanel vanishes on first click after app launches - Follow up

2011-08-02 Thread Peter
After setting a breakpoint at -[NSWindow orderOut:] (thanks for this and other hints to Kyle Sluder! - in a post on this list about a year ago) it turns out that it is exactly my - (void)windowDidResignKey:(NSNotification *)notification which takes the panel off the screen. (I wonder why I hadn

Re: Accessory NSPanel vanishes on first click after app launches - Follow up

2011-08-02 Thread Peter
I forgot to add: Using - (void)windowDidBecomeMain:(NSNotification *)notification - (void)windowDidResignMain:(NSNotification *)notification make the panel stay on the screen after the first mouse click, but on the other hand do not achieve the desired effect, i.e. remove the panel when other

Re: Why does initWithCoder has other self-object?

2011-08-18 Thread Peter
; windowNibName self= > windowControllerDidLoadNib self= > > As you can see, the object self is different in initWithCoder. Why? What's > wrong with my code? > > Any advice is very welcome. > > Thank you very much in advan

Re: Find a frame of an item in an NSOutlineView?

2011-08-18 Thread Peter
Haven't tried it, but AppKiDo tells me that NSOutlineView inherits the following method from NSTableView: frameOfCellAtColumn:row: as well as rectOfColumn: and rectOfRow: Am 18.08.2011 um 21:47 schrieb James Walker: > Is there a way to find the frame rectangle of an item/row in an NSOutline

Re: determine whether an ancillary program/task can run

2011-09-01 Thread Peter
Am 02.09.2011 um 00:19 schrieb Philip Ershler: > > On Sep 1, 2011, at 4:11 PM, Martin Wierschin wrote: > >> Hi Dave, >> >> Thanks for your reply. I was hoping to avoid handling that inspection >> myself, but even if I go that route there's another problem: the ancillary >> tool isn't a prope

sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell

2011-09-15 Thread Peter
I have a header cell for an NSTableView based on NSTextFieldCell containing an NSPopupButtonCell. I am setting the NSPopupButtonCell up programmatically. I set an action method for the NSPopupButtonCell in the standard fashion: [self.popupCell setAction:@selector(headerCellPopupChanged:)]; This

Re: applicationWillFinishLaunching

2011-09-30 Thread Peter
I am not sure I get your first sentence right, but rather than relying on the automatic delegate notification mechanism, you might want to actively subscribe to the notification. You can do so from any object, not just a delegate. [[NSNotificationCenter defaultCenter] addObserver:self

Re: adding something to a setter

2011-10-06 Thread Peter
But probably that bad feeling is self-inflicted ... At least for standard views or controls, if there is a need to redisplay, the property in question should probably belong to a model object not a view object. And in that case your object would not observe its *own* property but a property of

Re: How to blink with a focus ring of the text box?

2011-10-06 Thread Peter
Read carefully: The original poster stated: "any more text" - or are you suggesting that he should disable the text box when a certain number of characters are reached? I guess not. AFAIK, the focus ring is not accessible programmatically, except form setting it by making something the first r

Re: How to blink with a focus ring of the text box?

2011-10-06 Thread Peter
Adding to my own post I just found this in my snippets collection: This listing shows how you draw such a focus ring. It requires you to override the NSCell drawWithFrame:inView: In this method, if the cell is supposed to draw evidence of first-responder status, set the rectangle for the focus r

Re: Tool Tip Format

2011-10-24 Thread Peter
Are you using double quotes? For my tool tips I am returning something like this: return [NSString stringWithFormat:@"%@\n\n%@", currentFilePath, @"▸ File is missing!"]; Which works out perfectly. Am 24.10.2011 um 23:36 schrieb koko: > I want to add a new line to tool tip. > > I have tried b

Re: How select NSTextField programatically?

2011-12-13 Thread Peter
Am 13.12.2011 um 17:15 schrieb Kyle Sluder: > On Tue, Dec 13, 2011 at 8:10 AM, McLaughlin, Michael P. > wrote: >> I have a Cocoa "dialog" with several textfields for numerical input. When >> the user enters a bad value, I want to select that view programatically >> along with an NSBeep() so

Re: responding to NSStepper clicks

2011-12-16 Thread Peter
Am 16.12.2011 um 13:59 schrieb Koen van der Drift: > On Thu, Dec 15, 2011 at 10:50 AM, Koen van der Drift > wrote: >> On Thu, Dec 15, 2011 at 10:17 AM, Mike Abdullah >> wrote: >> >>> NSStepper is a subclass of NSControl. Hook up its action/target to be >>> notified when it's adjusted. >> >>

Re: responding to NSStepper clicks

2011-12-17 Thread Peter
Here is a simple tutorial by a list member of ours: http://juliuspaintings.co.uk/cgi-bin/paint_css/animatedPaint/059-NSStepper-NSTextField.pl This example uses an object controller but can be reconfigured to bypass it and bind to an ivar easily. Even though it uses a number formatter besides th

Re: Sheet created by NSObjectContoller??

2011-12-17 Thread Peter
Am 17.12.2011 um 19:59 schrieb Robert Monaghan: > Hi Everyone, > > Perhaps someone can help point me in the right direction on this: > > I have an NSObjectController that maintains a UI for me. > I have an NSTextField which contains numerical value. You could type in a > number, which populate

Re: Sheet created by NSObjectContoller??

2011-12-17 Thread Peter
and out pops a sheet! > > I am going to see about validation. Perhaps that is how this is happening. > > bob.. > > > > On Dec 17, 2011, at 11:10 AM, Peter wrote: > >> >> Am 17.12.2011 um 19:59 schrieb Robert Monaghan: >> >>> Hi Everyone

10.6 NSPasteboard API mixes up types?

2012-02-19 Thread Peter
in both code branches. './Users/pete' 'rjhartmann/Deskt' 'op/aaa.flv../Us' 'ers/peterjhartma' 'nn/Desktop/bbb.f' 'lv../Users/pete' 'rjhartmann/Deskt' 'op/ccc.flv' '...' Interestingly, I see file paths where I would

Bug in 10.6 NSPasteboard API? (was: 10.6 NSPasteboard API mixes up types?)

2012-02-27 Thread Peter
with the new API is discouraged on p. 33 of Apple's PasteboardGuide106.pdf. I'd be very happy about any pointers into the right direction. My original post is here: Am 19.02.2012 um 21:24 schrieb Peter: > I am using the following code: > > NSPasteboard *pb = [NSPasteboard g

Re: sudden errors

2012-02-28 Thread Peter
I'd suggest that you check that the target for your ViewManager .h and .m files is (still) correctly set. Get info on the files in XCode (in XCode 3 using a ctrl-click on the file) and check the target. Am 28.02.2012 um 10:45 schrieb H. Miersch: > > i just ran a little test: i went into my ap

Re: Finding object array index when iterating through array

2012-03-08 Thread Peter
if the same object were in the array twice. > > You should add a counter to your for..in loop, or use a traditional counted > for loop and -objectAtIndex: Finally... After reading so much "doubtful" (= outright bad) advice I began to doubt my own understanding of Objective-C.

Exposing NSTableView's usesAlternatingRowBackgroundColors in the user preferences

2011-07-13 Thread Peter
I'd like to expose NSTableView's option usesAlternatingRowBackgroundColors as a settable preference in my app's preferences window. "Easy, just use a binding", I thought before I realized that NSTableView does not expose this setting via bindings, neither using IB nor programatically. I found t

Re: Removing (foo) from a NSString

2011-07-13 Thread Peter
Am 12.07.2011 um 21:42 schrieb Fritz Anderson: > On 12 Jul 2011, at 2:23 PM, Eric E. Dolecki wrote: > >> What would be the easiest way to strip out parens and everything between >> them from an NSString? >> >> Into The Fire (Live) >> becomes >> Into The Fire > > NSRegularExpression will do, bu

Re: programmatically sorting an NSTableView

2011-07-13 Thread Peter
See here: http://www.cocoabuilder.com/archive/cocoa/174051-programmatically-sort-nstableview.html and here http://www.cocoabuilder.com/archive/cocoa/115880-programatically-sorting-tableview.html Am 12.07.2011 um 22:43 schrieb James Walker: > I have an NSTableView containing one column, which i

Re: Exposing NSTableView's usesAlternatingRowBackgroundColors in the user preferences

2011-07-14 Thread Peter
Thanks Kyle for the enlightenment! Very much appreciated. So however awkward - I guess I have to live with this technique. Am 14.07.2011 um 18:29 schrieb Kyle Sluder: > On Tue, Jul 12, 2011 at 11:53 AM, Peter wrote: >> I'd like to expose NSTableView's option usesAlternating

A better solution? - Accessing an array of strings saved to user defaults via bindings (solved in the end...)

2011-07-14 Thread Peter
I have found various references on this list and on the web about the impossibility to hook up an *editable* single-column NSTableView to an NSMutableArray of strings via bindings - and about some clever ways to work around this limitation. These workarounds may work in principle, but fail in a

Re: NSTextView won't deallocate

2011-07-18 Thread Peter
Maybe I am missing something, but given your example - which in some sense contradicts your comment, why do you expect dealloc to be called? If the retain count is in fact > 0 after the release (4 in your example below) dealloc is not called, since the view can not yet be deallocated. View.relea

Re: NSTextView won't deallocate

2011-07-18 Thread Peter
I wonder why Cocoa has retained it 4 times and what it plans to do with it > since I don't see thing that will cause the memory to be released. > > Thanks. > > On Jul 18, 2011, at 8:07 AM, Peter wrote: > >> Maybe I am missing something, but given your example - which in so

Sending a list of path strings to the Finder via Scripting Bridge

2012-05-24 Thread Peter
every scrap of information on the Scripting Bridge but I could not find anything about sending a LIST of paths. If all fails I'll have to convert the path strings to hfs paths and string-assemble a script to run using NSAppleScript in code - which feels clumsy. Thank you for any pointe

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-25 Thread Peter
Am 25.05.2012 um 09:09 schrieb Quincey Morris: > On May 24, 2012, at 23:56 , Peter wrote: > >> I'd like to reveal/select multiple items in the Finder. >> NSWorkspace only handles single files as in >> >>[[NSWorkspace sharedWo

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-25 Thread Peter
Thanks Shane! This is indeed a nice trick - and it's so obvious, once you are told. ;-) Am 25.05.2012 um 09:24 schrieb Shane Stanley: > On 25/05/2012, at 4:56 PM, Peter wrote: > >> If all fails I'll have to convert the path strings to hfs paths and >> string-as

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-26 Thread Peter
#x27;s trick below and it turns out to be astonishingly fast and easy. (Even if it is supposed to leak memory.) Thanks for all your comments! Am 25.05.2012 um 09:31 schrieb Peter: > Am 25.05.2012 um 09:24 schrieb Shane Stanley: > >> On 25/05/2012, at 4:56 PM, Peter wrote: >> >

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-26 Thread Peter
ect: (or a related method of NSMutableArray) >> on the element array. > > ...so perhaps you can call +[SBElementArray array] to get an empty one and > then add to it. Cheers, > > --Dave > > > > On May 26, 2012, at 12:42 AM, Peter wrote: > >> A

Re: Bug in 10.6 NSPasteboard API? (was: Sending a list of path strings to the Finder via Scripting Bridge)

2012-05-26 Thread Peter
b Ken Thomases: > On May 26, 2012, at 2:42 AM, Peter wrote: > >> One more half-baked technology from Apple (as is the new pasteboard API in >> its current implementation even if it looks very elegant on the surface - I >> guess quite a good deal of people will be bitten by it

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-26 Thread Peter
In partial rehabilitation of the Scripting Bridge, I should add that it certainly makes life A LOT easier than using NSAppleScript when pulling out data from a scriptable application: just try to make sense of the NSAppleEventDescriptor NSAppleScript returns, even given the flaws I pointed out

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-26 Thread Peter
Am 26.05.2012 um 13:07 schrieb Shane Stanley: > On 26/05/2012, at 8:24 PM, Peter wrote: > >> In partial rehabilitation of the Scripting Bridge, I should add that it >> certainly makes life A LOT easier than using NSAppleScript when pulling out >> data from a scriptab

Re: Sending a list of path strings to the Finder via Scripting Bridge

2012-05-26 Thread Peter
Thank you! You might want to add this to an appendix of your book some time. Am 26.05.2012 um 14:58 schrieb Shane Stanley: > On 26/05/2012, at 10:25 PM, Peter wrote: > >> On the other hand I have never seen/never tried to call AppleScript from >> Cocoa in AppleScriptOb

Moving from popup to text field cell in table view core data binding causes exception

2012-06-27 Thread Peter
ing-compliant for the key content" I am sure I am doing something terribly wrong, but I didn't manage to come up with an explanation/solution either in the docs or on the web. How should I solve this problem, with or without bindings? Th

Re: Moving from popup to text field cell in table view core data binding causes exception

2012-06-27 Thread Peter
binding completely before and reenabling the binding again after the change. Too much experimenting obviously left IB in a somehow confused state. Anyway - works now - sorry for the noise. Am 27.06.2012 um 19:42 schrieb Fritz Anderson: > On 27 Jun 2012, at 10:51 AM, Peter wrote: > >&

How to set a default filter on an NSTableView so that no data is displayed if NSSearchField is empty?

2012-07-07 Thread Peter
Any pointers are appreciated! Thanks! 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: Forcing Core Data to save attribute changed behind its back?

2012-07-24 Thread Peter
ease 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...@web.d

Re: NSTableView how to sort rows after modify datasource array

2012-10-12 Thread Peter
Am 02.10.2012 um 11:56 schrieb Евсеев Алексей: > sorry for my english > > I have a form with NSTableView and two button "add" and "remove" > > "Add" button add's item into datasource array. And new row will show only > after restart program. > > "Remove" button remove item from array. While

Re: Get the current displayed NSAlert

2012-12-03 Thread Peter
Do you mean something like [[self window] attachedSheet] Am 04.12.2012 um 02:13 schrieb Brad O'Hearne: > Hello all, > > Is there a way to get a reference to the currently displayed modal NSAlert, > or to be able to globally determine if a modal alert is presently showing in > a Cocoa app, t

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

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

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

2013-01-10 Thread Peter
Am 10.01.2013 um 18:38 schrieb 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 rest

Re: Turning off screen shot ability

2013-03-05 Thread Peter
Am 06.03.2013 um 06:13 schrieb Scott Ribe: > On Mar 5, 2013, at 8:57 PM, Brad O'Hearne wrote: > >> I am working on a security-related Mac app and I need to know the way to >> turn off the ability to screen shot or capture the contents of the app's >> window. > > No, what you need to do is rec

Use of Instruments.app remedies Core Data memory issue (!?)

2013-07-14 Thread Peter
n option. I am sure that changing my design, i.e. executing searches as real fetches from the store, or reimplementing this with a real database backend should lead to better performance, but this is a different issue and I'd rather avoid the latter. Peter

Re: Use of Instruments.app remedies Core Data memory issue (!?) - SOLVED

2013-07-16 Thread Peter
Fritz, thanks for your reply. (It looks like non of your posts made it to the list, I only received your private copies. Maybe you are inadvertently sending from an account not registered with the list?) Am 16.07.2013 um 02:43 schrieb Fritz Anderson: > On 14 Jul 2013, at 5:45 AM, Pe

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

2014-01-07 Thread Peter
row numbers, for which I shouldn’t need a „real“ data source, just get the info from the table itself. To which I can’t bind in addition to my actual data source. Therefore my quest for pointers to a programatical setup. Thanks a lot, Peter ___ Cocoa

Letting an instance know its own index within a container array - how to?

2014-01-07 Thread Peter
the entity order the delegate to send a query to the array controller about its own index in arranged objects. Does this seem like a sane approach? Thanks, Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

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

2014-01-07 Thread Peter
Am 07.01.2014 um 17:32 schrieb Jens Alfke : > > On Jan 7, 2014, at 7:52 AM, Peter wrote: > >> I’d be very happy if somebody could point me to an example of an editable >> NSTableView set up programmatically. > > It sounds like you just mean using a custom data

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

2014-01-07 Thread Peter
a delegate from the field editor and get the value via editedRow and editedColumn or something similar. But this is rather awkward. I wonder why there is nothing relevant in the docs, no example on the web... Am 07.01.2014 um 18:11 schrieb Keary Suska : > > On Jan 7, 2014, at 9:40 AM,

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

2014-01-07 Thread Peter
Am 07.01.2014 um 23:16 schrieb Keary Suska : > On Jan 7, 2014, at 1:38 PM, Peter wrote: > >> Thank you for your comment. >> >> Did you really manage to create *editable* view-based table views with data >> sources? > > Yes. > >> Then I am

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   3   4   5   6   7   8   9   10   >