Re: Mystery Threads

2016-09-29 Thread Daniel Vollmer
> On 29 Sep 2016, at 10:05, Gerriet M. Denkmann wrote: > > >> On 29 Sep 2016, at 14:38, Quincey Morris >> wrote: >> >> On Sep 29, 2016, at 00:15 , Gerriet M. Denkmann wrote: >>> >>> dispatch_apply(

Re: NSOperation Dispatch Thread Soft Limit

2014-03-03 Thread Daniel Vollmer
Hi, On 3 Mar 2014, at 09:43, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I have a MyOperation, subclass of NSOperation. MyOperation does: create an NSOperationQueue add a few MyOperations to this queue waitUntilAllOperationsAreFinished (obviously this recursion

Re: Scene Kit

2012-10-21 Thread Daniel Vollmer
Hi, On 21 Oct 2012, at 00:44, Thomas Cunningham maui...@maui.net wrote: How (as in by which amounts) are you modifying the properties to arrive at those mixed results? Why are they not what you want? What do you actually want? I want to know what properties I should be adjusting to

Re: Scene Kit

2012-10-20 Thread Daniel Vollmer
Hi, Disclaimer: I've not worked with SceneKit yet. On 19 Oct 2012, at 22:13, Thomas Cunningham maui...@maui.net wrote: On desktop, what mechanisms should I be using to implement a simple zoom in and out of the 3d scene? I am using a camera node and have tried using xFov, yFov and position

Re: Finding object array index when iterating through array

2012-03-08 Thread Daniel Vollmer
On 7 Mar 2012, at 12:09, John Maisey wrote: Hi, If the items are unique, how about: [array indexOfObject:object]; Congratulations, you have just (depending on NSArray-implementation details) improved your loop from from O(N) to O(N^2). Don't do this. Using a counter is likely be

Re: NSScrollView animation (animate scroll point)

2011-09-02 Thread Daniel Vollmer
'lo, On 2 Sep 2011, at 06:54, Indragie Karunaratne wrote: This has been asked a few times before, but not after Lion was released so I figured I'd ask again. Is there any way to animate the scroll point of an NSScrollView? I figure that animation must be possible somehow, considering that

Re: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?

2011-08-11 Thread Daniel Vollmer
On 4 Aug 2011, at 20:25, Quincey Morris wrote: On Aug 4, 2011, at 03:12, Daniel Vollmer wrote: On 3 Aug 2011, at 19:20, Quincey Morris wrote: By modifying the frame of what? You should be changing the scroll view frame, but you make it sound like you're changing the table view frame

Re: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?

2011-08-04 Thread Daniel Vollmer
On 3 Aug 2011, at 19:20, Quincey Morris wrote: On Aug 3, 2011, at 05:41, Daniel Vollmer wrote: Now, what I'm trying to do is resize the tableview horizontally inside the scrollview *without* changing the size of the window itself[1]. I can do that easily enough by modifying its frame

NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?

2011-08-03 Thread Daniel Vollmer
Hello all, I have a window covered with an NSTableView inside an NSScrollView. The tableview has a single column which is set to autoresize with the tableview. This works as expected when I resize the window, the column extends correctly to fill the newly available space. Now, what I'm trying

NSView-based NSTableView: How to animate when using bindings?

2011-07-29 Thread Daniel Vollmer
Helloes, I'm experimenting with migrating from my formerly NSCollectionView-based drawing to using an NSView-based table-view (as the tableView is conceptually closer to what I'm displaying (http://www.maven.de/code/wowplot/example_chains.png). The NSCollectionView had really nice animation

Space-efficient saving for Versions?

2011-07-28 Thread Daniel Vollmer
Salutations, in my custom document package I'm always including a large-ish chunk of data that does not get modified as I change the document itself. Currently, I'm keeping this around as NSData-object and write it out when being asked by NSDocument to return my fileWrapper as one sub-file of

Re: UI like Transmission BT

2011-07-28 Thread Daniel Vollmer
On 28 Jul 2011, at 10:16, Wilker wrote: Hi Guys, Which components of XCode 4 I should use in order to make an UI like the Transmission BT (http://www.transmissionbt.com/) Why don't you check yourself in the source-code: https://trac.transmissionbt.com/browser/trunk/macosx Daniel.

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-24 Thread Daniel Vollmer
Hello again, On 23 Jul 2011, at 13:00, Daniel Vollmer wrote: Oddly enough, the TextEdit example *should* end up with the same problem when I create a .rtf-document, drag an attachment into it (so it becomes .rtfd), and then close the document. Unfortunately, it works fine for TextEdit but I

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-23 Thread Daniel Vollmer
After some more time on this, I still don't get it. =) I've given this a go, but it does not seem to work for me. I set the new fileType after [super readFromURL:...] is done. Then, when - (void)saveToURL:(NSURL *)url ofType:(NSString *)typeName

NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Daniel Vollmer
Hello, I'm trying to add autosavesInPlace support to my NSDocument-based Application. It supports a read-only type that is internally converted (as suggested in

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Daniel Vollmer
On 22 Jul 2011, at 19:25, Kevin Perry wrote: On Jul 22, 2011, at 9:16 AM, Daniel Vollmer wrote: Hello, I'm trying to add autosavesInPlace support to my NSDocument-based Application. It supports a read-only type that is internally converted (as suggested in https

Best way to do static overlay over scrolling content?

2011-07-20 Thread Daniel Vollmer
Hello, I have a visualisation application that displays multiple graphs (currently using NSCollectionView, but possibly switching to an NSView-based NSTableView in the future) that looks like this: http://www.maven.de/code/wowplot/example_chains.png When you scroll sideways, the title of each

Re: NSScrollView, centering document view?

2011-02-10 Thread Daniel Vollmer
Hi, On 30 Jan 2011, at 06:38, Todd Heberlein wrote: Is there an easy way to do this? Or should I make sure my document view is always at least as large as the content view and then just center my drawing inside my document view? Here's a sub-class of NSClipView that does that. I have to

Re: Grand Central Strategy for Opening Multiple Files

2010-12-31 Thread Daniel Vollmer
I would like to open multiple files at the same time, but based on some logic that doesn't choke the OS by having 100s of files open and exceeding the hard drive's sustainable output. This blog post deals with similar issues on image files:

Re: Best technology to use for overlays?

2009-04-25 Thread Daniel Vollmer
On Apr 24, 2009, at 14:34 , Mike Abdullah wrote: Just position your overlay view as a sibling to the scrollview. If you're using NSCollectionView, you're targeting Leopard+, where overlapping views are properly supported. True, but I just remembered I don't see how I can support

Best technology to use for overlays?

2009-04-24 Thread Daniel Vollmer
Hi, I want to optimise my drawing code a bit. Essentially, I have a custom NSView embedded in an NSCollectionView embedded in an NSScrollView. In my custom view, I always want to display an overlay (consisting of something like a description string of what is being displayed). This

Re: Best technology to use for overlays?

2009-04-24 Thread Daniel Vollmer
, somewhere in the back of my mind was the mention of a restriction that subviews were not allowed to overlap, but I may be wrong on that account. Best regards, Frederik Slijkerman. Daniel. Daniel Vollmer wrote: Hi, I want to optimise my drawing code a bit. Essentially, I have

Re: NSPredicateEditorTemplateRow , pop up with Core Data objects

2009-04-12 Thread Daniel Vollmer
Hello, On Apr 10, 2009, at 23:37 , Dan Waltin wrote: I'm trying to create a NSPredicateEditorTemplateRow where the last view is a popup, containing every item of a particular CoreData entity (named StudyVisit). I'm doing something similar (and it's working fine for me). Then I override

Re: Troubles with CollectionView and IKImageBrowserView

2008-06-12 Thread Daniel Vollmer
On Jun 12, 2008, at 00:25, Jens Alfke wrote: On 11 Jun '08, at 1:14 PM, Manuel wrote: But the IKImageBrowserView doesn't call these methods. I setup a testmethod in the MYNSCollectionViewItem like the following code, to verify that the imagebrowser outlet is set and to set again the

Re: IB outlets and NSCollectionViews

2008-05-25 Thread Daniel Vollmer
On May 23, 2008, at 17:48, David Carlisle wrote: I solved a similar problem when putting a pop up menu into a collectionView item. There might be an easier way, but I assume that to put a button in a collectionViewItem, the button would have to send a message to a subclass of

Re: NSCollectionView problems

2008-05-25 Thread Daniel Vollmer
On May 25, 2008, at 18:44, Jens Alfke wrote: I remember having some similar funky issues with the scrollbar — IIRC, the scrolling range was always much too large for the number of items, and resizing the window didn't help. I can't remember now exactly what I did to fix it ... looking

Fighting NSCollectionView for first Responder

2008-05-22 Thread Daniel Vollmer
Hi all, I have an NSCollectionView in whose item-views I want to do some event handling (validateMenuItem: to enable / disable the events that currently make sense and a bit of keyboard / mouse input), but I'd also like the NSCollectionView to handle the selection of items. So I pass the

NSScrollView, NSCollectionView and zooming / resizing to the center

2008-05-20 Thread Daniel Vollmer
Hi all, the subject is vague, but I'm at a loss for how to describe my problem. I have an NSCollectionView inside an NSScrollView (as is usual). I display a bunch of items (in 1 column and multiple rows) in the collection view. The (custom views) inside the collection view are set to

Create NSStrings from a mapped NSData object - safe?

2008-05-13 Thread Daniel Vollmer
Salutations! I'm parsing a rather large text-file (usually 20MB) and in doing so I'm iterating over its lines with [String getParagraphStart]. I've found a rather noticeable speed-up in the parsing operation if I create the string in question from an NSData object (created via