Re: Help Indexer error - what does it MEAN?

2012-11-07 Thread Matthias Arndt
Hi Graham, I had the same issue today: As Andy mentioned the HTML validation is much stricter than in the past, e. g. all / / / tags have to be closed ... I just finished correcting all help files of one project, checked them via , and HelpIndexer didn't report any

Re: How to redraw a view in slow-motion

2011-06-25 Thread Matthias Arndt
Hi guys, I'd just like to give you some final feedback, how I was able to solve my problem, drawing a view with some thousand paths in a slow-motion. You all have contributed to this approach, which is a mixture of your suggestions, and works pretty well so far. The basic idea: 1. make the d

Re: How to redraw a view in slow-motion

2011-06-20 Thread Matthias Arndt
Hi Graham, hi Uli, guys, you're gems! Thanks for all the input. Currently it's too early to dive into some high sophisticated optimization, and with Graham's info I'm confident the view's back buffer will work for me. Am 20. Jun 2011 um 08:59 schrieb Graham Cox : > The view is already doing th

Re: How to redraw a view in slow-motion

2011-06-19 Thread Matthias Arndt
Hi Graham, Am 20. Jun 2011 um 02:24 schrieb Graham Cox : > Your (4) is looking like the best approach - use a timer to schedule a > periodic update of the view, and during that update, draw only some portion > of the content on top of what you've drawn already. That leaves the issue of > view

Re: How to redraw a view in slow-motion

2011-06-19 Thread Matthias Arndt
Am 19.06.2011 um 19:05 schrieb cocoa-dev-requ...@lists.apple.com: > If you keep the animation short (say 1.5 to 2 seconds) the freezes might not > be too irksome to the user [...] CALayer look like an attractive option. Even with only 0.01 seconds sleep after drawing each path the UI froze comp

Re: How to redraw a view in slow-motion

2011-06-19 Thread Matthias Arndt
Hi Ken, Am 19.06.2011 um 15:40 schrieb Ken Tozier: > - (void)observeValueForKeyPath:(NSString *) inKeyPath > ofObject:(id) inObject > change:(NSDictionary *) inChange > context:(void *) inContext > { > if ([inKeyPath isEqualToString: @"subsetRange"

How to redraw a view in slow-motion

2011-06-19 Thread Matthias Arndt
In a document-based app my custom view draws some thousand paths in drawRect: with a good performance. Now I'd like to offer a "slow-motion" animation, so the user can actually watch the paths being drawn (not each single one, but e. g. in steps of 100 paths per sec). I though of several approa

Re: Advice for drawing complex, line-based designs

2011-02-10 Thread Matthias Arndt
Tom, > I'm working on a project where I'm reading in a file that contains a list of > coordinates that are used to define a stitch pattern for embroidery machines. Would you mind contacting me off-list? Maybe we can cooperate on some topics ... Mattes

Re: Cocoa Finder Hooks

2011-02-10 Thread Matthias Arndt
David, although it's nearly 3 months old, I just stumbled over your posting: > When a file is selected in Column View in the Finder a Preview and Meta Data > about the file display. Is there something ala Quicklook that allows me to > add meta data to the preview? Did you figure it out? I thi

Re: How to make 2D lines look 3D

2010-12-31 Thread Matthias Arndt
Hi Thomas, Am 31.12.2010 um 16:45 schrieb Thomas Engelmeier : > Which means you used OpenGL line drawing primitives. You could try to use > pre-rendered images with transparency (=shadow), with linecaps separate and > an stretchable image for the line. Google keywords: Texture2d, 2d texture >

Re: How to make 2D lines look 3D

2010-12-31 Thread Matthias Arndt
Hi all! Am 23.12.2010 um 15:52 schrieb Matthias Arndt: > I think the only way to decide for the best way is a test app, performing > several thousand drawings in each method, but did I miss any important > approach? Do you know one of the mentioned methods not being worth the >

Re: How to make 2D lines look 3D

2010-12-23 Thread Matthias Arndt
Am 23.12.2010 um 16:02 schrieb John Joyce : > You might consider looking at cocos2d or looking at DrawKit. > Both are open source with very good licensing conditions... :) > They may save you a lot of work and leave you more future flexibility. > There may also be some Omni frameworks that might b

How to make 2D lines look 3D

2010-12-23 Thread Matthias Arndt
Hi folks, first a kind of disclaimer: Addressing different graphic technologies (Quartz 2D, OpenGL ES, Cocoa classes) I was quite uncertain in list I should write this posting: feel free to forward me to anyone you'll find appropriate ... I posted the same question to the Developer Forums, but

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Matthias Arndt
Am 11.01.2010 um 18:36 schrieb Alastair Houghton: > [path cStringUsingEncoding:NSASCIIStringEncoding] is wrong. You want [path > filesystemRepresentation], otherwise you will have problems if there are any > non-ASCII characters in the provided path. "fileSystemRepresentation", but I stand cor

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Matthias Arndt
Am 11.01.2010 um 17:17 schrieb James Bucanek: > Another suggestion: ask filesystem questions on the filesystem-dev list > (). The people on > this list are filesystem geniuses, but some have publicly admitted that they > can't keep up with

Re: Differentiate FAT16 and FAT32

2010-01-10 Thread Matthias Arndt
Alastair, Am 10.01.2010 um 21:34 schrieb Alastair Houghton: >> In my app I have to differentiate between USB storage devices formatted with >> a MSDOS-FAT16 or with MSDOS-FAT32 file system. > > Because? Remember that the flavour of FAT in use is defined *entirely* by > the number of clusters

Differentiate FAT16 and FAT32

2010-01-10 Thread Matthias Arndt
Hi! I currently stuck, maybe someone can point my into the right direction! In my app I have to differentiate between USB storage devices formatted with a MSDOS-FAT16 or with MSDOS-FAT32 file system. At the moment I use [NSWorkspace getFileSystemInfoForPath] to get some information: BOOL isRem

Re: How to distribute an app: Installer or original file

2009-11-22 Thread Matthias Arndt
Hi Uli, am 22.11.2009 um 19:53 schrieb Uli Kusterer: > You can put your Quicklook and Spotlight plugins inside your application > package, IIRC. Something like MyApp.app/Contents/Library/Spotlight/ or > something like that. The OS will automatically pick up the plugins from there > (check the

How to distribute an app: Installer or original file

2009-11-22 Thread Matthias Arndt
Hi folks! I really need your help to make up my mind: For the last year I develop a hobby solution, which consists of a stand-alone application, a QuickLook and a Spotlight plugin. While the app is shareware, the plugin can be used for free. Currently I distribute all of them as three single f

Re: Make a solid line look like 3D

2009-10-26 Thread Matthias Arndt
Am 26.10.2009 um 17:44 schrieb Matthias Arndt: or some reasons I still don't understand (Argh!) the drawRect: method of my view didn't pass the right rectangle to the object actually responsible for the drawing. I mis-phrased that! There is no *technical* thing I don't un

Re: Make a solid line look like 3D

2009-10-26 Thread Matthias Arndt
Hi guys, first let me thank you for all information and suggestions you provided! Am 26.10.2009 um 00:48 schrieb I. Savant: That was entirely my fault, sorry. I have no idea where I got the idea it was for a screen saver. I did not follow the link. In my defense, a better description of th

Re: Make a solid line look like 3D

2009-10-25 Thread Matthias Arndt
Am 25.10.2009 um 19:50 schrieb I. Savant: How about creating 1 NSGradient instance for each color you want, then creating one bezier path for each line. The path would describe the outer edges of the pipe, then you'd *fill* it with the gradient at the desired angle, rather than stroking.

Make a solid line look like 3D

2009-10-25 Thread Matthias Arndt
My code draws lines some thousand times with different angles. I'd like to have the lines to look similar to 3D objects. So currently I draw each line segment three times: 1. one time with a thick line in black 2. the second time with a slightly thinner line in the current color 3. and a thir

Re: Avoid Compiler Warning regarding IB 3.2

2009-10-23 Thread Matthias Arndt
Am 23.10.2009 um 22:11 schrieb Kyle Sluder: Make sure you set the Development Target to IB3.2 in the Document Info window in IB (Window > Document Info). Wow! That was FAST and EASY ... ! Sorry, that I missed that setting, you made my day! Matthias __

Avoid Compiler Warning regarding IB 3.2

2009-10-23 Thread Matthias Arndt
Hi! In one of my NIBs I use a feature that's only available with IB 3.2 (individual toolbar identifier). This causes the compiler to fire the following warning: Custom values for the "identifier" attribute are not available in Interface Builder versions prior to 3.2. Is there any wa

Re: Changing an NSToolbar Identifier

2009-10-22 Thread Matthias Arndt
Am 02.10.2009 um 06:53 schrieb Matthias Arndt: I introduced a new key in user defaults reflecting the "toolbar version". If the toolbar version stored in the user defaults doesn't match the toolbar version of the application I simply delete the old plist settings and the a

Re: Instance variables: access directly vs. getter / setter

2009-10-09 Thread Matthias Arndt
Am 09.10.2009 um 13:32 schrieb Graham Cox : In the first case, interested observers using KVO to track changes to will get automatically notified, and any subclasses that have overridden -setIvar: or -ivar also get called as they should. Got it :-) As always your feedback is simply pricel

Re: Instance variables: access directly vs. getter / setter

2009-10-09 Thread Matthias Arndt
Am 09.10.2009 um 11:30 schrieb Graham Cox: In init and dealloc, it is usual & recommended to access the ivar directly - not because self isn't defined (it is), but because at those times you are usually only concerned with setting the ivar's initial value (possibly to an object), or releasi

Instance variables: access directly vs. getter / setter

2009-10-09 Thread Matthias Arndt
While restructuring some old classes I'm uncertain about the preferred way to access instance variables within their own instance: I tend to defines all these variables as properties and use their implicit getters / setters, but ... 1. ) ... in the designated initializer I have to access th

Changing an NSToolbar Identifier

2009-10-01 Thread Matthias Arndt
Hi Markus, The background for this is as follows: I have a new version of an application that shares its app ID with the previous version. The toolbar in question is saving its state (using the "Autosaves configuration" setting in IB). The new version introduces additional items that are

Re: NSScrollView: Scrollers invisible under Mac OS X 10.6

2009-09-04 Thread Matthias Arndt
Hi Graham, hi Kyle! Another thing to be aware of is that if you do it right, the ruler views managed by the scrollview also "just work" and allow for the view's zoom. I don't think you should be doing what you're doing to the NSClipView. I don't know what crossed my mind, but I used metho

Re: NSScrollView: Scrollers invisible under Mac OS X 10.6

2009-09-01 Thread Matthias Arndt
Am 01.09.2009 um 23:59 schrieb Kyle Sluder: Why are you scaling your clip view? It would make more sense to scale your document view. It was my understanding that a custom view could be zoomed in (at least) two ways: (1.) using "scaleUnitSquareToSize" of the clip view (leaving the coord

Re: NSScrollView: Scrollers invisible under Mac OS X 10.6

2009-09-01 Thread Matthias Arndt
When zoomin in the scrollers remain invisible! I can scroll (e. g. using the scrollball of my mouse), but the scrollers aren't shown. And now something really strange (at least for me): After resizing the window the scrollers appear! I've set a breakpoint and checked custom view, clip vie

NSScrollView: Scrollers invisible under Mac OS X 10.6

2009-09-01 Thread Matthias Arndt
Hi! Under Mac OS X 10.5 I wrote an application with an NSScrollView containing a custom view. The NSScrollView was composed using IB and the "autohidesScrollers" option checked. As long as the content fits into the NSScrollView the scrollers were hidden. If the NSClipView was zoomed (usin

Re: Key path for values in "Shared User Defaults"? [SOLVED]

2009-03-24 Thread Matthias Arndt
Keary, On 24.03.2009, at 16:21 Keary Suska wrote: OTOH, you could have an outlet to the defaults controller, say, named "defaultsController" and use @"defaultsController.values.DEFALTSKEY" to keyPathsForValuesAffectingPreview. I think that is supposed to work... Wow, thank you so much, y

Key path for values in "Shared User Defaults"?

2009-03-23 Thread Matthias Arndt
Please help me: What is the key path of a value stored in the shared user defaults? I'm using a sub-classed NSViewController to enhance the print panel with an accessory view: NSBundle *appBundle = [NSBundle bundleForClass:[self class]]; NSViewController *accessoryViewController = [[PrintO

How to create a color catalog

2009-03-08 Thread Matthias Arndt
I'm still struggling with the problem to identify a color list / name after picking a color with NSColorPanel. It would be easy to solve if I could use color catalogs instead of color lists. In [1] the following is mentioned about NSColorList: The color lists returned by the availableColorL

Re: Determine colorlist/-name after NSColorPanel

2009-03-07 Thread Matthias Arndt
At least I found my error with this one: Today I tested a bit with "catalogNameComponent" and "colorNameComponent", but always received an exception. I tried to convert the selected color into NSNamedColorSpace, but didn't get it work. Has anybody got an example or a hint? I mixed up "cat

Determine colorlist/-name after NSColorPanel

2009-03-06 Thread Matthias Arndt
Hi! I think of redesigning the way colors can be selected in one of my apps: Currently I use NSPopupButtons an entry for every color and I'd like to move to NSColorWalls / NSColorPanel with predefined lists. These lists should represent color palettes, here threads of different vendors or

Override a UTI?

2008-12-17 Thread Matthias Arndt
Sorry for picking up an old topic, but I'm not sure to have the latest information: My application is able to deal with Melco's embroidery files. The only way to identify these files is their extension ".exp", unfortunately claimed by the system-declared UTI for "com.apple.symbol-export".

Re: NSMutableDictionary autorelease chrashes application

2008-07-18 Thread Matthias Arndt
Am 18.07.2008 um 16:42 schrieb Shawn Erickson: This is the wrong thing to take away from this email thread. Please review the following and ask questions if you don't understand any aspect of it.

Re: NSMutableDictionary autorelease chrashes application

2008-07-18 Thread Matthias Arndt
Robert, Am 18.07.2008 um 16:25 schrieb Robert Martin: In the next line, you reassign vAttributes to the contents of your iVar dictionary. Nothing points to that alloc'd dictionary in the first line anymore. Since vAttributes now points to an autoreleased dictionary, attempting to release

NSMutableDictionary autorelease chrashes application

2008-07-18 Thread Matthias Arndt
Hi! I'm a rookie with Cocoa development, please excuse if this question is stupid, but I'm struck with memory management (an even Aaron's book doesn't help me): In a method I use a (temporary) dictionary "vAttributes" to read an object from an instance variable "vColors" (a dictionary, to