Custom View for hierarchy -- NSTreeController or Data Source?

2011-12-10 Thread John Velman
(Using Xcode 4.2, writing for OS X Lion) I have a hierarchy of stuff I want to display (at the same time) in both outline view and a custom view. Sort of analagous to the Buck and Yacktman (Cocoa Design Patterns) example in CH. 29, but with Outline instead of Table. I'll most likely have a detail

Re: OutlineView, drop between rows?

2011-09-10 Thread John Velman
Well, this isn't the first time I've felt stupid. I had thought it should work that way, but I wasn't dragging _far_enough_ to the left. Thanks for setting me straight! John V. On Sat, Sep 10, 2011 at 08:00:30PM -0700, Jerry Krinock wrote: > > On 2011 Sep 10, at 16:

OutlineView, drop between rows?

2011-09-10 Thread John Velman
nd" would still indicate it was dropping on a child. I'd appreciate any guidance. John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: Help Book authoring tool?

2011-01-31 Thread John Velman
the same thing. There are free HTML editors out there, if that's more to your taste than plain text with markup. I tried Amaya, as I recall, but went back to Vim/Pandoc. There is an Apple help-authoring mailing list. Perhaps you should subscibe. Fairly low traffic. Best, John Velman

NSTreeNode and NSCoding

2010-05-31 Thread John Velman
NSTreeNode doesn't seem to be NSCoding compliant. How does one archive a tree when using NSTreeNode? Does one, when saving, extract the represented objects for archiving, then rebuild with NSTreeNodes when unarchiving? Can't seem to find any examples or information. Thanks, J

Re: Printing an NSDocument

2010-03-19 Thread John Velman
Somewhere I read that printing is always a pain, but with Cocoa it's somewhat less of a pain. Not that I've done a lot of printing, but that was my impression. (Some years ago I tried printing with Microsoft Visual C++ and that was really bad -- maybe MSVC is better by now, but haven't touched MS

Re: My app not in services menu, but appears to be registered

2009-12-11 Thread John Velman
Forgot to note that I'm still working in OS X 10.5.8, XCode 3.1.4. On Fri, Dec 11, 2009 at 11:06:38AM -0800, John Velman wrote: > > I'm at my wits end trying to add a service to my app, with no luck > getting it into the servic

My app not in services menu, but appears to be registered

2009-12-11 Thread John Velman
I'm at my wits end trying to add a service to my app, with no luck getting it into the services menu of anything. It appears to have the right info in both the lsregister dump, and the ~/Library/Preferences/pbs. ... .plist file. (I've included these below). Could it be that something is wrong

/System/.../pbs -dump_pboard gives no output

2009-12-05 Thread John Velman
in fact can't even get it listed in the services menu, but I'll try to debug this a bit more on my own before asking the list.) Thanks, John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Document file read, but -readFromData:(etc) has error.

2009-08-13 Thread John Velman
On Thu, Aug 13, 2009 at 08:50:06PM -0500, Ken Thomases wrote: > On Aug 13, 2009, at 4:07 PM, John Velman wrote: > >> - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName >> error:(NSError **)outError >> { >>NSLog(@"readFromData has been call

Re: Document file read, but -readFromData:(etc) has error.

2009-08-13 Thread John Velman
ad it, but some time ago, and I didn't re-read it for this. Sorry for the inconvenience! John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Document file read, but -readFromData:(etc) has error.

2009-08-13 Thread John Velman
this is due to returning NO. But what is the unimplemented core routine? I'm using Xcode 3.1.3, on OS X 10.5.8, Intel core 2 duo. My active architecture is i386, sdk is 10.5, build configuration is Debug. Thanks, John Velman ___ Cocoa-dev mai

Re: UML Diagramming or Other Helpful Software

2009-06-24 Thread John Velman
I don't know about UML diagram, but Doxygen can produce diagrams of different types, and can also be used to produce Xcode documentation sets: http://developer.apple.com/tools/creatingdocsetswithdoxygen.html Best, John Velman On Wed, Jun 24, 2009 at 11:16:14AM -0400, Dennis Christopher

Re: UML Diagramming or Other Helpful Software?

2009-06-24 Thread John Velman
I haven't tried it, but it's on my todo list. The other day I ran across ArgoUML at http://argouml.tigris.org/. It runs on "any Java platform". I'd be interested in what you end up using. John Velman On Tue, Jun 23, 2009 at 06:49:18PM -0700, Brad Gibbs wrote: > Hi

Re: Printing/reports?

2009-04-02 Thread John Velman
ing programming topics for cocoa", and "Mac OS X Printing System Overview" I found "Text Layout Programming Guide for Cocoa" especially useful. Good luck. If there is any documentation like you are asking for, I'd be happy to see it also. If you don't get a bet

Re: [SOLVED--AGAIN] Re: Printing a range of text in a particular container --

2008-12-29 Thread John Velman
ld be more convenient. Well, thanks again, John Velman On Mon, Dec 29, 2008 at 09:21:50AM -0800, John Velman wrote: > > Thanks, Martin. [snip] > > Thanks again, > > John V. > > > On Sun, Dec 28, 2008 at 11:23:32PM -0800, Martin Wierschin wrote: > > Hi Joh

[SOLVED!] Re: Printing a range of text in a particular container --

2008-12-29 Thread John Velman
Thanks, Martin. I hadn't found the fact that the form feed character (also \f, inside q quoted string) would cause the break and move to the new container. This works for my current testing (I'm just writing a test program to explore the text system and what tricks I can do with it). If I need

Printing a range of text in a particular container --

2008-12-28 Thread John Velman
start out in the textContainer2. I can't see a way to do this using only one NSTextStorage instance >From what I can tell, it would seem to require two NSTextStorage instances with corresponding layout managers and textContainers. It seems I'm missing something. I need a me

How to use NSWorkspace?

2008-12-07 Thread John Velman
I'm missing something obvious, but I don't know what. I want to use NSWorkspace to open an application from a command line Foundation Tool. When I try to build the simplest thing, I get -- Undefined symbols: ".objc_class_name_NSWorkspace", referenced from: [EMAIL PROTECTED]@[

RE: Opening persistent data store -- Problem solved, thanks.

2008-11-12 Thread John Velman
icular in mind? I don't need undo and redo (all changes to database are directly to database via sql, and one table in database keeps a historical record which can be used for undo ...). Likewise, I don't need 'save', 'save as' , 'new'... Well, Thanks Aga

Opening persistent data store

2008-11-08 Thread John Velman
ate for NSDocument-based applications." Is there a NSDocument method I should be overriding? It's probably obvious, but there is sooo much to read... Thanks, John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Why "self"? (Was: Newbie: Referencing Objects)

2008-10-27 Thread John Velman
I'm new to objective-C and cocoa also, I I don't know the answer to your specific question about "self". However, seems that one way to do it would be to have the init of mySubObject have an initializer with argument, and you would then create it something like this: SubObject * mySubObject = [[S

Re: [MVC Design] Model Controller Rationale?

2008-10-23 Thread John Velman
all these unless I want to describe the architecture to a third party. In another sense, it is important to think of them in such a way as to encourage (for myself) appropriate MVC modularization as I proceed. Thanks for listening! John Velman > > Cocoa-dev mailing list (Cocoa-dev@lists

Re: (Solved!) Return and Enter don't "behave" in Text Field (Newb)

2008-10-20 Thread John Velman
g! Thanks for your help and patience. John Velman On Mon, Oct 20, 2008 at 04:09:20PM -0700, Aki Inoue wrote: > > On 2008/10/20, at 13:46, John Velman wrote: > >> Thanks, Aki, this helps clear some things up. However, two questions: >> >> 1) What does "possibly&quo

Re: Return and Enter don't "behave" in Text Field (Newb)

2008-10-20 Thread John Velman
[aTextView nextResponder]]; I tried this and it doesn't work. Could be I'm sending the message to the wrong object? Thanks, John Velman On Mon, Oct 20, 2008 at 12:29:00PM -0700, Aki Inoue wrote: > John, > > "End editing" doesn't necessarily mean losing focus in

Return and Enter don't "behave" in Text Field (Newb)

2008-10-20 Thread John Velman
ation on field editors. By default, text views don’t behave as field editors. So where can I look to find out why my field editor is not behaving as a field editor? Thanks, John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Getting the values from the selected row of a table?

2008-10-07 Thread John Velman
t 03:10:27PM -0400, I. Savant wrote: > On Oct 7, 2008, at 2:55 PM, John Velman wrote: > >> I'm able to get the selected row index, but this seems to give the >> "geographic" index of the selected row in the table, as sorted. > > Why don't you get the

Re: Next Key View doesn't "go to" pushbutton

2008-10-07 Thread John Velman
o Cocoa, new to Mac as well. (And very happy with both, as well as the helpful people on this list.) Thanks, John V. > > > On Oct 7, 2008, at 1:47 PM, John Velman wrote: > >> I've got a number of text boxes to be filled in by the user. Tab order >> works fine us

Getting the values from the selected row of a table?

2008-10-07 Thread John Velman
y and map the selection back to the original data. I'm using IB and key value binding, and registering a notification to get the fact of selection did change. Thanks, John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Next Key View doesn't "go to" pushbutton

2008-10-07 Thread John Velman
llgass nor Anderson seem to cover these (I admit I read impatiently and rely on the index a lot), and the Apple documentation (and various archives) are so extensive I haven't been able to hit exactly the key words to get to the answers. Best, John Velman __

Re: (Newb) Multiple NSWindowControllers and bindings

2008-09-16 Thread John Velman
nages the presentation of the document in a window. In MVC terms, a NSWindowController document is a view-controller: " But I take your point! Thanks, again, John V. On Tue, Sep 16, 2008 at 10:18:32AM -0700, Quincey Morris wrote: > On Sep 16, 2008, at 09:49, John Velman wrote: >

(Newb) Multiple NSWindowControllers and bindings

2008-09-16 Thread John Velman
In my app, I'm using multiple windows to get multiple perspectives on the model. If I understand correctly, MyDocument should typically be the Model controller as well as owner of the NSWindowControllers. And in a NIB (or XIB), the NSWindowController is the File's Owner, and is the main "View Con

Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?

2008-08-30 Thread John Velman
Thanks. I think the self.document method you describe will do it for me. This is part of the syntax (and a relation) that I'd missed. So much to learn! John V. On Sat, Aug 30, 2008 at 06:16:17PM -0700, Quincey Morris wrote: > On Aug 30, 2008, at 17:50, John Velman wrote: > &g

(Newbie) How do Multiple NSWindowControllers find MyDocument?

2008-08-30 Thread John Velman
y", and a method "setCreatedby". Then in MyDocument, when I alloc and init the instance of the masterWindowController, I follow directly with [masterWindowController setCreatedby:self]. Or, is there a more Cocoa-ish way of doing this? Thanks, John Velman __

Re: Help no longer needed! (was: help linking sqlite3 wrapper)

2008-08-04 Thread John Velman
emo code (which just writes to the console) in the Action. WONDERFUL. It works just fine. I can't believe how much time I've wasted trying to do something more complicated. :-) Thanks again! John V. On Mon, Aug 04, 2008 at 11:39:42AM -0700, John Velman wrote: > Since I sent

Re: help linking sqlite3 wrapper

2008-08-04 Thread John Velman
> > On Aug 4, 2008, at 11:56 AM, John Velman wrote: > >> After making changes to move the download from sqlite to sqlite3, and >> checking that I have /usr/local/lib/libsqlite3.a, and putting >> /usr/local/lib in the library search path of the project, the source for &

help linking sqlite3 wrapper

2008-08-04 Thread John Velman
I need a sqlite wrapper. After much surfing and reading, I decided to try the one: // Created by Dustin Mierau on Tue Apr 02 2002. // Copyright (c) 2002 Blackhole Media, Inc. All rights reserved. // After making changes to move the download from sqlite to sqlite3, and checking that I have

Re: importing sqlite data into a core data "database"

2008-07-13 Thread John Velman
On Sat, Jul 12, 2008 at 08:25:39PM -0700, John Velman wrote: > Thanks, Chris, > > Using the SQLite 3 api as you suggest sounds good, but there are a couple --[snip] Thanks to all who responded. Things are much clearer now. Just a word about third party software. I didn't mea

Re: importing sqlite data into a core data "database"

2008-07-12 Thread John Velman
See below: On Sun, Jul 13, 2008 at 12:09:13PM +1000, Steve Steinitz wrote: > Hi John, > > On 12/7/08, [EMAIL PROTECTED] wrote: > >> 1) a) generate my application in XCode, use the sqlite storage option, put >> in some dummy data, then use sqlite3 to explore the resulting schema, b) >> transform my

Re: importing sqlite data into a core data "database"

2008-07-12 Thread John Velman
past week, but haven't come across anything directly related to this. Thanks, John Velman On Sat, Jul 12, 2008 at 05:27:56PM -0700, Chris Hanson wrote: > On Jul 12, 2008, at 4:54 PM, John Velman wrote: > >> So, being new to Cocoa, XCode, objective-c, How do I get my data

importing sqlite data into a core data "database"

2008-07-12 Thread John Velman
This seems to be revisiting an old question, but I haven't been able to find an answer. I have an existing set of data in sqlite. To be honest, it isn't set up in the schema I'd most like, yet, but in sqlite I know how to transform it, and put it into the desired schema. I like the features core

Re: XCode3 for Persistent Data on Tiger

2008-07-10 Thread John Velman
ul 10, 2008 at 01:54:22PM -0700, Jens Alfke wrote: > > On 10 Jul '08, at 10:19 AM, John Velman wrote: > >> If I set the SCM options properly, and use XCode3, following steps as >> outlined in the NSPersistentDocument CoreDataUtilityTutorial (but setting >> the SCM op

XCode3 for Persistent Data on Tiger

2008-07-10 Thread John Velman
s without more study, but the amount of available material is huge, and I need to get this project going pretty soon. Thanks, John Velman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments