Re: Designing reports in Cocoa apps

2008-10-19 Thread René v Amerongen
Hi, About, On 19 okt 2008, at 01:51, Kyle Sluder wrote: This method is also usually unusable for any sort of charting or other non-traditional reporting. What I did, to test something, was using NSimage to create an image. Save the representation, as jpeg f.e, in tmp and then read it back

what do you use to make icons and similar?

2008-10-19 Thread Roland King
I need a make a few icons and other graphics for my app, simple stuff like a small yellow triangle with an invisible background. I'm totally and completely graphically challenged which never helps. I can't find a simple (preferably free!) drawing program which will let me make stuff like

Re: what do you use to make icons and similar?

2008-10-19 Thread Jean-Daniel Dupas
Le 19 oct. 08 à 11:20, Roland King a écrit : I need a make a few icons and other graphics for my app, simple stuff like a small yellow triangle with an invisible background. I'm totally and completely graphically challenged which never helps. I can't find a simple (preferably free!)

Re: Designing reports in Cocoa apps

2008-10-19 Thread Bill Cheeseman
on 2008-10-18 7:51 PM, Kyle Sluder at [EMAIL PROTECTED] wrote: Others go the traditional route and write a custom NSView that they print. You have to draw it yourself, but this gives you far more control -- particularly useful when you want to know about the paper size and orientation, or

mutatingNodes error when binding to an NSArray

2008-10-19 Thread Ken Tozier
Hi I'm working my first NSOutlineView app and trying to programatically bind the the content property of an NSOutlineView to a mutable files array property of a class and keep getting the following error in the console. *** -[PMProjectView _mutatingNodes]: unrecognized selector sent to

Re: what do you use to make icons and similar?

2008-10-19 Thread Andy Lee
On Oct 19, 2008, at 5:20 AM, Roland King wrote: I need a make a few icons and other graphics for my app, simple stuff like a small yellow triangle with an invisible background. I'm totally and completely graphically challenged which never helps. I can't find a simple (preferably free!)

Re: mutatingNodes error when binding to an NSArray

2008-10-19 Thread Ken Tozier
I should add that if i change to a normal NSTableView, I don't get that error and everything basically works (except for the expand collapse functionality) so it seems to be something specific to NSOutlineViews. On Oct 19, 2008, at 7:26 AM, Ken Tozier wrote: Hi I'm working my first

Re: what do you use to make icons and similar?

2008-10-19 Thread Roland King
forgot about GIMP, might try that. I found something called 'DrawIt', the free version of which is crippled to 5 layers but .. not really an issue for what I'm doing. What I'm creating here are some very small button icons and a few indicators, 30x30 pixels, small, with very simple shapes,

Re: what do you use to make icons and similar?

2008-10-19 Thread Benjamin Dobson
I believe png are really what I'm trying to make here, they seem to be recommended. PNGs are not resolution independent, although they are perfectly acceptable. Saving as a TIFF then converting it to PDF with Preview works well for me. ___

Re: Views, frames, and bounds

2008-10-19 Thread DKJ
I did read the section of the documentation you mentioned, but so far it hasn't helped. I'll show you some of the code I was playing with. I'm just not understanding why I'm getting the results I do. I used IB to create a subview in a window, by dragging a custom layout view from the

Re: Passing Variables to AppleScript

2008-10-19 Thread has
Pierce Freeman wrote: I am attempting to create a little application that will take an application name from the user, and then close it for them. I am attempting do this by getting the string in Cocoa, then passing this to AppleScript... But I don't know if Cocoa can pass variables to

Re: Views, frames, and bounds

2008-10-19 Thread Graham Cox
On 20 Oct 2008, at 12:08 am, DKJ wrote: When I run the code I get a nice red rectangle in the window, just where I expected it. But when I replace bounds with frame, I get nothing. That's the first puzzle. Maybe if I can understand what's happening here, the other puzzles will be

WebView crashes with JavaScript enabled

2008-10-19 Thread Benjamin Dobson
Hi all, If I enable JavaScript in my WebView, it exits with status 2, after printing Debugger() was called! to the console. When I disable it, it works fine – but without JavaScript. My code (URL given as an example): [[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL

Re: WebView crashes with JavaScript enabled

2008-10-19 Thread Benjamin Dobson
And I forgot to mention – the application does not crash when started with Instruments. On 19 Oct 2008, at 14:33:41, Benjamin Dobson wrote: Hi all, If I enable JavaScript in my WebView, it exits with status 2, after printing Debugger() was called! to the console. When I disable it, it

Re: what do you use to make icons and similar?

2008-10-19 Thread Steve Christensen
On Oct 19, 2008, at 5:50 AM, Benjamin Dobson wrote: I believe png are really what I'm trying to make here, they seem to be recommended. PNGs are not resolution independent, although they are perfectly acceptable. Saving as a TIFF then converting it to PDF with Preview works well for me.

Re: What is A class which must be subclassed ?

2008-10-19 Thread Michael Ash
On Sat, Oct 18, 2008 at 11:28 PM, Jerry Krinock [EMAIL PROTECTED] wrote: On 2008 Oct, 18, at 18:16, Michael Ash wrote: The question is ... does it make *sense* to create [an instance of the base class Foo]. The answer is no. If the answer is no, then it's an abstract class. Is my answer

Re: Views, frames, and bounds

2008-10-19 Thread Michael Ash
On Sat, Oct 18, 2008 at 11:04 PM, DKJ [EMAIL PROTECTED] wrote: I am unable to understand the relation between the frame and the bounds of an NSView. I've read the documentation in the View Programming Guide, and also played around with them myself in a practice project. In the latter, I tried

Re: Views, frames, and bounds

2008-10-19 Thread Andy Lee
On Oct 19, 2008, at 9:08 AM, DKJ wrote: That's the first puzzle. Maybe if I can understand what's happening here, the other puzzles will be resolved too! Try placing two of your views in the window with different sizes and positions. Add NSLog statements to your -drawRect: method that

Re: what do you use to make icons and similar?

2008-10-19 Thread John Joyce
: I believe png are really what I'm trying to make here, they seem to be recommended. PNGs are not resolution independent, although they are perfectly acceptable. Saving as a TIFF then converting it to PDF with Preview works well for me. Please excuse me if I missed something earlier in the

Re: Views, frames, and bounds

2008-10-19 Thread DKJ
The penny has finally dropped. Thanks to all for your help. dkj ___ 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: what do you use to make icons and similar?

2008-10-19 Thread Benjamin Dobson
On 19 Oct 2008, at 16:22:44, Steve Christensen wrote: On Oct 19, 2008, at 7:38 AM, Benjamin Dobson wrote: On 19 Oct 2008, at 15:12:09, Steve Christensen wrote: On Oct 19, 2008, at 5:50 AM, Benjamin Dobson wrote: I believe png are really what I'm trying to make here, they seem to be

Re: what do you use to make icons and similar?

2008-10-19 Thread Jean-Daniel Dupas
Le 19 oct. 08 à 16:32, John Joyce a écrit : : I believe png are really what I'm trying to make here, they seem to be recommended. PNGs are not resolution independent, although they are perfectly acceptable. Saving as a TIFF then converting it to PDF with Preview works well for me. Please

Re: what do you use to make icons and similar?

2008-10-19 Thread Ricky Sharp
On Oct 19, 2008, at 9:32 AM, John Joyce wrote: It doesn't and it cannot. PDF is only a container, that happens to support vector art well, but cannot vectorize a raster image. If you properly placed some vector art into a pdf you might be able to garner some sort of resolution

Re: what do you use to make icons and similar?

2008-10-19 Thread Paul Bruneau
On Oct 19, 2008, at 12:09 PM, Ricky Sharp wrote: I will disagree here. It was so worth the effort to move all my bitmapped images to vector-based artwork. I got beautiful scaling from 0.5 to 3.0x to include non-integral scaling factors. In terms of the statement cannot vectorize a raster

Re: WebView crashes with JavaScript enabled

2008-10-19 Thread Stephen J. Butler
On Sun, Oct 19, 2008 at 8:33 AM, Benjamin Dobson [EMAIL PROTECTED] wrote: If I enable JavaScript in my WebView, it exits with status 2, after printing Debugger() was called! to the console. When I disable it, it works fine – but without JavaScript. My code (URL given as an example):

Re: WebView crashes with JavaScript enabled

2008-10-19 Thread Jason Coco
On Oct 19, 2008, at 14:22 , Stephen J. Butler wrote: On Sun, Oct 19, 2008 at 8:33 AM, Benjamin Dobson [EMAIL PROTECTED] wrote: If I enable JavaScript in my WebView, it exits with status 2, after printing Debugger() was called! to the console. When I disable it, it works fine – but without

Re: WebView crashes with JavaScript enabled

2008-10-19 Thread Benjamin Dobson
On 19 Oct 2008, at 19:41:41, Jason Coco wrote: On Oct 19, 2008, at 14:22 , Stephen J. Butler wrote: On Sun, Oct 19, 2008 at 8:33 AM, Benjamin Dobson [EMAIL PROTECTED] wrote: If I enable JavaScript in my WebView, it exits with status 2, after printing Debugger() was called! to the console.

Re: Converting from HTML

2008-10-19 Thread Drarok Ithaqua
Following that link and pasting the code, I find it doesn't work correctly. It's replacing amp; with a space! All I'm trying to do is parse the RSS feed URL out of the head section of a document. I didn't think it'd be so difficult! As this app is going to be used on a specific site, I

Binding across different Nib

2008-10-19 Thread gMail.com
Hi, I have recently discovered the bind features and I have found it's a great technology. It really saves a lot of time. I have added a NSObjectController to the xib file, connected it to MYClass and my test worked well. Now I have a MyDocument.xib file containing the controller and the window

Re: Binding across different Nib

2008-10-19 Thread mmalc crawford
On Oct 19, 2008, at 2:21 PM, gMail.com wrote: So now, how to connect the NSObjectController to the active document? http://www.google.com/search?client=safarirls=en-usq=Binding+across+different+Nibie=UTF-8oe=UTF-8 mmalc ___ Cocoa-dev mailing

Core Data: fetching keypaths through abstract entities

2008-10-19 Thread David Riggle
I want to use a keypath that goes through an abstract entity down into a concrete sub-entity. For example, given this data model: Abstract entity: person Concrete sub-entities: man, woman Abstract entity: club relationship: members (- person) Concrete sub-entities: allMale, coed I want to

Re: what do you use to make icons and similar?

2008-10-19 Thread Graham Cox
On 20 Oct 2008, at 1:32 am, John Joyce wrote: If you don't have skill, pay somebody to do it. Not always an option, even if desirable. For a small one-man shop, consider these prices, which I received from a certain icon shop that is promoted (among several) on Apple's own site's

Pointing in the right direction for an XCode 3 pref pane.

2008-10-19 Thread Adam Penny
Hi all, I'm a novice as far as Cocoa is concerned having only just finished Aaron Hillegass' book on programming for OS X. It's been going fairly well until I actually wanted to apply the ideas to my own project! I've written a ruby command line utility that has a model stored in a plist

Re: NSUserDefaults and binding to an NSDictionary

2008-10-19 Thread Todd Ouzts
Not sure how to best join a thread since there's no Reply link on Apple Mailing Lists, but... I've been struggling to do what Daniel wants for a week and can't figure it out either. My user defaults are not a flat list and I need to be able to bind to subdictionary values in Interface

Re: Pointing in the right direction for an XCode 3 pref pane.

2008-10-19 Thread Nick Zitzmann
On Oct 19, 2008, at 9:33 AM, Adam Penny wrote: Having constructed a preference subclass with the appropiate outlets corresponding to those I've placed in the nib file, I'm getting an NSObject and setting it's class to the preference pane subclass with my outlets in it, but this seems to

Re: NSUserDefaults and binding to an NSDictionary

2008-10-19 Thread Steven Riggs
Hey Todd, This worked for me... In interface builder, you will need an Array controller Mode: ClassClass Name:NSMutableDictionary Content Array bound to Shared User Defaults Controller - controller key:values - modal key path:yourDefaultsKey Make sure handles content as a compound

[OT] How do people use and contribute to this list?

2008-10-19 Thread Kiel Gillard
Hi all, I subscribe to the cocoa-dev list RSS feed instead of receiving individual or digest emails. I find this approach is a fast and convenient method to scan the topics, examine individual messages and receive regular updates to the cocoa-dev's content without flooding my inbox. In contrast,

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Rob Keniger
On 20/10/2008, at 10:32 AM, Kiel Gillard wrote: Can anyone offer any advice or suggestions? Or should I settle for the cumbersome digest mode? Why not just create a mail folder and add a rule to move Cocoa-Dev messages to it? This is standard procedure AFAIK. -- Rob Keniger

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Kiel Gillard
On Mon, Oct 20, 2008 at 11:47 AM, Rob Keniger [EMAIL PROTECTED] wrote: On 20/10/2008, at 10:32 AM, Kiel Gillard wrote: Can anyone offer any advice or suggestions? Or should I settle for the cumbersome digest mode? Why not just create a mail folder and add a rule to move Cocoa-Dev messages

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Rob Keniger
On 20/10/2008, at 10:55 AM, Kiel Gillard wrote: Filtering cocoa-dev messages doesn't enable me to quickly scan and identify threads I would like to contribute to like the RSS feed allows me to. In Mail, select View Organize by Thread. Works for me. -- Rob Keniger

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Kiel Gillard
Thanks for the replies all, these are helpful suggestions. Kiel On Mon, Oct 20, 2008 at 12:12 PM, Nathan [EMAIL PROTECTED] wrote: The easiest thing to do is just set up a smartbox, except that it sorts, it doesn't move the messages. Set up a rule and mailbox, to simply move all cocoalist

Re: Mouse Coalescing

2008-10-19 Thread Graham Cox
On 20 Oct 2008, at 12:06 pm, Ian was here wrote: I turned off mouse coalescing with a call to SetMouseCoalescingEnabled( false, NULL ). This gave me beautiful drawing. Only problem is that it's slow and takes a while to catch up after the mouse up event. This is kind of an off the wall

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Graham Cox
On 20 Oct 2008, at 12:09 pm, Rob Keniger wrote: In Mail, select View Organize by Thread. Works for me. And don't subscribe to the digest, but to the full feed. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

NSMetadataQuery question

2008-10-19 Thread Timothy Reaves
I'm trying to write a query where the meta data in question is an NSDate stored as a binary plist. Everything I am doing is failing. I have tried '(myKey %@, date] where date is an instance of NSDate, where it is a NSTimeInterval, and a string. Nothing returns data (or even calls my

Re: mutatingNodes error when binding to an NSArray

2008-10-19 Thread Ron Lue-Sang
NSOutlineView bindings only work when bound up to an NSTreeController. On Oct 19, 2008, at 4:26 AM, Ken Tozier wrote: Hi I'm working my first NSOutlineView app and trying to programatically bind the the content property of an NSOutlineView to a mutable files array property of a class and

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Andrew Merenbach
On Oct 19, 2008, at 5:32 PM, Kiel Gillard wrote: Hi all, I subscribe to the cocoa-dev list RSS feed instead of receiving individual or digest emails. I find this approach is a fast and convenient method to scan the topics, examine individual messages and receive regular updates to the

What's the modern solution for sharing data between Cocoa to Windows

2008-10-19 Thread Erik Buck
If you watch this video from 1995 and the particularly three subsequent parts of the video, you'll see that NeXT offered an interesting technology for seamless communication between Openstep/ Cocoa objects on the server and rich Windows clients running Excel and Visual Basic applications:

Re: Mouse Coalescing

2008-10-19 Thread Michael Ash
On Sun, Oct 19, 2008 at 9:06 PM, Ian was here [EMAIL PROTECTED] wrote: I have a drawing application that uses a pen tool to do free style drawing. I am using Quartz in OS X 10.4 (NSBezierPath). The initial problem I had was not getting enough points between event cycles if the user moved the

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Scott Ribe
However, I still have to scroll or search digests for particular topics and delete digest messages once I'm done with them, which is obviously more tedious and involved than just hitting space bar in NetNewsWire, for example. Filtering cocoa-dev messages doesn't enable me to quickly scan and

Re: What's the modern solution for sharing data between Cocoa to Windows

2008-10-19 Thread Kyle Sluder
On Sun, Oct 19, 2008 at 10:45 PM, Erik Buck [EMAIL PROTECTED] wrote: All of that is gone now. Apple chucked it all 10 years ago. What is the modern solution ? WS-* (WebServicesCore.framework).

Is there a character limit in (NSString* title) and (NSString* message) in NSBeginCriticalAlertSheet dialog?

2008-10-19 Thread Lance Kwan
Is there a character limit in (NSString* title) and (NSString* message) in NSBeginCriticalAlertSheet dialog? or there is limited characters for (NSString* message)? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: Updating a Static Text and Slider From High Priority Thread While Resizing a Window [SOLVED]

2008-10-19 Thread Peter Zegelin
Actually I just found an old thread: 'Problem redrawing views while window resize button is held' and the suggestion was to use [window displayIfNeeded]; to force a window update. This works, so problem solved. Thanks again, Peter On 20/10/2008, at 2:33 PM, Peter Zegelin wrote: Thanks

Mutable arrays

2008-10-19 Thread DKJ
Since mutable arrays and dictionaries expand as required when new objects are added, when should one use -initWithCapacity: methods? dkj ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Mutable arrays

2008-10-19 Thread Graham Cox
On 20 Oct 2008, at 4:06 pm, DKJ wrote: Since mutable arrays and dictionaries expand as required when new objects are added, when should one use -initWithCapacity: methods? I'd guess they're only worth using if you know you are about to populate one with a lot of items and the performance

Detecting system preference for trackpad zooming.

2008-10-19 Thread Graham Cox
How can I programatically detect the state of the Zoom while holding checkbox and modifier key choice in System Prefs - Keyboard Mouse - Trackpad? This setting can clash with a view zooming feature in my app so I'd like to be able to detect it and adjust my own settings accordingly,

Re: Mutable arrays

2008-10-19 Thread j o a r
On Oct 19, 2008, at 10:11 PM, Graham Cox wrote: Since mutable arrays and dictionaries expand as required when new objects are added, when should one use -initWithCapacity: methods? I'd guess they're only worth using if you know you are about to populate one with a lot of items and the