Re: NSBezierPath + thin lines + antialias = :(

2015-02-10 Thread Charles Jenkins
This may explain why my purchase of a program that outputs code for vector images resulted in disappointment. I don't have a retina display, so I bought a program to make graphics code that would look good at any size/resolution in my Mac app, even for displays I have no experience with. What I

Re: Running window as a sheet

2015-02-10 Thread Charles Jenkins
Thank you all very much. You know, I started this attempt by typing [settings beginSheet because I assumed all windows/windowControllers acted like savePanel, but XCode didn't give any code-completion suggestions for that. Then when I did some documentation research, I read that SavePanel's

Running window as a sheet

2015-02-09 Thread Charles Jenkins
  So I have a window that now works fine as a modal window, but because I don’t like where it appears on the screen, I’m attempting to run it as a sheet instead. My Cocoa books and the NSWindow documentation seem to suggest that any window can be run as a sheet, and they along with XCode’s

Re: Modal Window Failure on 10.10.2

2015-02-09 Thread Charles Jenkins
Thanks, Ken and Graham. Somehow I must’ve deleted windowNibName by accident. Previously, my Source View window ignored any attempt to set the text color of an item, then after updating to 10.10.2, suddenly text colors worked. Because that change in behavior related to the OS, I also associated

Modal Window Failure on 10.10.2

2015-02-08 Thread Charles Jenkins
 I updated my OS yesterday, and now my modal window doesn’t work (which probably means I’m doing it wrong and just got lucky before). I created the window by asking XCode to create a subclass of NSWindowController and making sure the “also create xib” checkbox was checked. Then I designed the

Re: How to wire up document exporting?

2015-01-29 Thread Charles Jenkins
Thanks, Quincey. I really do want an export feature, and I think you've given me enough good information to get me started :-) --  Charles On January 28, 2015 at 20:42:31, Quincey Morris (quinceymor...@rivergatesoftware.com) wrote: On Jan 28, 2015, at 16:16 , Charles Jenkins cejw

How to wire up document exporting?

2015-01-28 Thread Charles Jenkins
and eventually dataOfType:error: will be called. But I’m worried that dataOfType and fileWrapperOfType can’t both be used??? Am I on the right track here, or is there some other path Export menu items should take? — Charles Jenkins ___ Cocoa-dev

Re: setApplicationIconImage:

2015-01-23 Thread Charles Jenkins
Rick, I have a silly suggestion you might like.  I don't really understand what could be so different about the Yosemite icon that it would seem glaringly out of place on other systems, but assuming it really is the case that you want to continue to have two versions, I suggest you continue to

What's up with the Cocoa Text System?

2015-01-23 Thread Charles Jenkins
For some reason, typing text on a Mac has always had a little bit of friction: however the OS receives keyboard input, it doesn't seem to be able to keep up as well as a PC. But lately, toward the end of Mavericks' lifespan and now on Yosemite, it has actually become painful to type in text.

Re: Am I Reinventing the Wheel? (Part I)

2015-01-08 Thread Charles Jenkins
were delivered in their own chunks, and it was me botching the result up by inserting extraneous newlines. I have no excuse, because Apple’s documentation says three times that the string received by parser:foundCharacters: may be incomplete. — Charles Jenkins On Thursday, January 8, 2015

Am I Reinventing the Wheel? (Part I)

2015-01-08 Thread Charles Jenkins
When you try to reinvent the wheel, most often what you end up with is a flat tire. I need to deal with two issues that are probably already handled in some Cocoa API I just haven't found yet. This email asks about the first of these issues. I'm writing data to XML. When you create a node

Am I Reinventing the Wheel? (Part II)

2015-01-08 Thread Charles Jenkins
This is the second issue for which I'm looking for an existing API call. I have two ranges from an NSAttributedString. I want to compare their fonts and attributes in such a way as to derive a dictonary containing only the differences. Does a font-and-attribute comparison method already

Re: Saving NSAttributedString to a File

2015-01-08 Thread Charles Jenkins
Jeffrey, FWIW, I started with RTF and then decided I'd need to switch over to using XML instead in order to have control of writing out what I needed from my NSAttributedStrings. If you're writing RTF for interoperation with another program, you may be stuck with it; but if you're working on

Re: Am I Reinventing the Wheel? (Part I)

2015-01-08 Thread Charles Jenkins
Fantastic! I can't wait to get home and try it! — Charles On Thursday, January 8, 2015 at 11:08, Keary Suska wrote: NSDictionary *documentAttributes = @{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType}; NSData *htmlData = [s dataFromRange:NSMakeRange(0, s.length)

Blurry is the New Sharp

2015-01-05 Thread Charles Jenkins
Leaving aside any discussion of whether it was a good idea to add vibrancy to the OS, I do have a question about how to use it. When a popup window or a pulldown such as a menu appears, using the content of whatever's under it as the source image for vibrancy makes sense because the

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Charles Jenkins
Jenkins wrote: Thanks, all. I’ll reload parent items. In my app, whether an item has children or not can change which icon appears in the tree, and the outline view has no way to know about that without a reload to cause it to requery the delegate. — Charles Jenkins On Sunday

Re: Blurry is the New Sharp

2015-01-05 Thread Charles Jenkins
Well, the user has selected a desktop wallpaper he likes, presumably with a pleasing color scheme. Taking vibrancy from an image the user has already indicated a preference for is much kinder than blurring in whatever happens to be in a window behind the foreground app. — Charles Jenkins

Re: Blurry is the New Sharp

2015-01-05 Thread Charles Jenkins
Georg, I believe you can uncheck allows vibrancy in IB. But back to my original question: does anyone know how to make the vibrancy effect be based only on the desktop image, ignoring any other windows which might be beneath the foreground app? — Charles On Monday, January 5, 2015 at

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Charles Jenkins
Well, the view-based outline view calls my delegate to get the view pointer for a given item, and in response my delegate dutifully creates one, sets its text and image, and hands it over. But after that the item view I created is owned by the outline view, and I think--but would be happy to be

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Charles Jenkins
Thanks to everyone for the info about viewForTableColumn:item:. I overlooked it somehow in my search. You're right, I do all the configuration in outlineView:viewForTableColumn:item:, but when I tested using reloadItem: on affected nodes of the tree, the disclosure triangles got updated but

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-04 Thread Charles Jenkins
triangles and item icons should be updated after the move animation ends? — Charles Jenkins On Saturday, January 3, 2015 at 3:33 PM, Quincey Morris wrote: On Jan 3, 2015, at 12:13 , Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com) wrote: These things work, and I can verify

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-04 Thread Charles Jenkins
Oh, hang on… I bet I need to wrap the moves in a begin/end updates block. I’ll try that now. — Charles Jenkins On Sunday, January 4, 2015 at 8:22 AM, Charles Jenkins wrote: Quincy: Thanks for the answer! But something is still missing... moveItemAtIndex:… does indeed move

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-04 Thread Charles Jenkins
No, begin/end updates didn’t help. I’m still having the problem described below: On Sunday, January 4, 2015 at 8:22 AM, Charles Jenkins wrote: Quincy: Thanks for the answer! But something is still missing... moveItemAtIndex:… does indeed move the items around to the proper places

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-04 Thread Charles Jenkins
Thanks, all. I’ll reload parent items. In my app, whether an item has children or not can change which icon appears in the tree, and the outline view has no way to know about that without a reload to cause it to requery the delegate. — Charles Jenkins On Sunday, January 4, 2015 at 7:06 PM

Rearranging NSOutlineView via drag-and-drop

2015-01-03 Thread Charles Jenkins
something else to update the outline? — Charles Jenkins ___ 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: Image Sizing

2015-01-01 Thread Charles Jenkins
Thank you all for that good information. :-) I once had AirDisplay for my iPad, so I need to re-download it and see what I need to do to get it going with Yosemite. — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Image Sizing

2014-12-31 Thread Charles Jenkins
I have a non-retina Mac and no experience knowing what happens to graphics when used on a retina screen. I bought PixelCut's PaintCode as a Christmas present to myself so that my images could be made resolution-independent, but I'm having quite a bit more difficulty getting good results than I

Re: NSTextView and Syntax Highlighting

2014-12-20 Thread Charles Jenkins
*)characterSet range:(NSRange)range; @end Cheers and happy holidays to all! — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSTextView and Syntax Highlighting

2014-12-19 Thread Charles Jenkins
range. Could it be that even though the layout manager's temporary attributes are designed for purposes like syntax highlighting, folks don't actually use them because they don't work right during edits? — Charles On Wednesday, December 17, 2014 at 22:03, Charles Jenkins wrote: In my text

Saving NSAttributedString to a File

2014-12-19 Thread Charles Jenkins
You can use attributes to hide pretty much whatever information you want in the attributes dictionaries associated with individual characters in an NSMutableAttributedString. For example, if you use named paragraph styles, each character in memory can know which style has been applied to it.

Re: Added Toolbar, now main window can't be resized

2014-12-17 Thread Charles Jenkins
works as expected if I do not set the Split View delegate and instead go into IB and crank the left side’ s holding priority all the way up. Thanks, Quincey! — Charles On Tuesday, December 16, 2014 at 23:50, Quincey Morris wrote: On Dec 16, 2014, at 20:38 , Charles Jenkins cejw

Re: Added Toolbar, now main window can't be resized

2014-12-17 Thread Charles Jenkins
, at 8:31 AM, Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com) wrote: Well, there you go. Another newbie booby trap! :-D It looks like the demo app works as expected if I do not set the Split View delegate and instead go into IB and crank the left side’ s holding priority

NSTextView and Syntax Highlighting

2014-12-17 Thread Charles Jenkins
attributes? — Charles Jenkins ___ 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

Re: Added Toolbar, now main window can't be resized

2014-12-16 Thread Charles Jenkins
On Saturday, December 13, 2014 at 9:24 AM, Charles Jenkins wrote: What else should I look for to determine why my window became unresizable? Well, I found it, and I’d like your opinions on whether it’s a bug that should be reported to Apple. My app is a document-based app where the main user

Re: WTF is happening?

2014-12-15 Thread Charles Jenkins
During the course of this thread, Maxthon has given us code that would enable us to run the experiment for ourselves. I do not doubt him. — Charles Jenkins On Monday, December 15, 2014 at 2:31 AM, Maxthon Chan wrote: My class scanning returned several OS* classes that does not conform

Added Toolbar, now main window can't be resized

2014-12-13 Thread Charles Jenkins
are the defaults except that I set Full Screen = Primary Window. The Maximum Size setting is unchecked. What else should I look for to determine why my window became unresizable? — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Thank You

2014-11-27 Thread Charles Jenkins
actually work on OS X! — Charles Jenkins ___ 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

Re: Adding attributes to text in a text table cell

2014-11-21 Thread Charles Jenkins
beat the text-table or special-attachment approaches? — Charles Jenkins On Thursday, November 20, 2014 at 17:31, Ken Thomases wrote: The table-ness of text is stored in the paragraph style. You are replacing the paragraph style. -addAttributes:range: will preserve existing attributes _other

Re: Deconstructing Text Tables

2014-11-20 Thread Charles Jenkins
Thank you, Ken. It took some research and experimentation before I could understand your explanation, but it looks like that’s exactly what I needed. — Charles Jenkins On Tuesday, November 18, 2014 at 3:43 PM, Ken Thomases wrote: On Nov 18, 2014, at 6:38 AM, Charles Jenkins cejw

Adding attributes to text in a text table cell

2014-11-20 Thread Charles Jenkins
alter the text as I expect, it also blows up my text table and breaks or merges cells. What should I be doing instead, rather than blithely calling addAttributes:range:? — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Deconstructing Text Tables

2014-11-18 Thread Charles Jenkins
/Articles/TextTables.html) is fairly clear. What I don’t see—and maybe it’s there but I just don’t understand it—is how to pull the table apart again. Suppose I want to grab all text from the first cell after the user has edited it. How do I do that? — Charles Jenkins

Re: Deconstructing Text Tables

2014-11-18 Thread Charles Jenkins
, then jumping to the next index after that and asking again. That should work, but what the heck would I pass as the textBlock pointer? Since a text block is exactly what I’m trying to find, I don’t have a good pointer to start with, do I? — Charles Jenkins On Tuesday, November 18, 2014 at 12:50

Re: Nil Coalescing and Optional Chaining?

2014-11-07 Thread Charles Jenkins
Well, if you have only one argument, then arguments.count would be 1, but to get the argument, you’d ask for Process.arguments[0]. Arrays are zero-based. — Charles Jenkins On Friday, November 7, 2014 at 09:30, David Wood wrote: (Dagnabbed mailing list didn’t set the ReplyTo field

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-31 Thread Charles Jenkins
despite the rough edges caused by legacy Obj-C.) — Charles Jenkins On Thursday, October 30, 2014 at 18:57, Graham Cox wrote: On 31 Oct 2014, at 5:38 am, David Hoerl dho...@mac.com (mailto:dho...@mac.com) wrote: Looks great, but I cannot read Objective C anymore - where is the Swift

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-31 Thread Charles Jenkins
On Friday, October 31, 2014 at 13:22, Fritz Anderson wrote: On 31 Oct 2014, at 6:40 AM, Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com) wrote: My day job is programming in C# for Windows computers. I was really excited when Swift came out because it’s so similar to other

Re: NSTableView inside NSTextView

2014-10-16 Thread Charles Jenkins
Ulf, As you can see from my text view struggles, I’m no expert, but I don’t think you’ll have a lot of success trying to stick an NSTableView into an NSTextView. The kind of table you put inside a text view is a different animal: really just a fancy attributed string the text system knows

Re: NSTableView inside NSTextView

2014-10-16 Thread Charles Jenkins
? - - - - - Am 16.10.2014 um 14:41 schrieb Charles Jenkins: Ulf, As you can see from my text view struggles, I’m no expert, but I don’t think you’ll have a lot of success trying to stick an NSTableView into an NSTextView. The kind of table you put inside a text view is a different

Re: Table of TextViews

2014-10-15 Thread Charles Jenkins
in response to a row height adjustment. I posted this code first because I thought someone might find a nuance I’ve misunderstood of the sizing setup. -- Charles On Wednesday, October 15, 2014 at 2:43, Ken Thomases wrote: On Oct 14, 2014, at 7:49 AM, Charles Jenkins cejw...@gmail.com

Re: Table of TextViews

2014-10-15 Thread Charles Jenkins
Of course in the penultimate paragraph I meant I redesigned the TEXT VIEW this way to filter notifications. I never seem to find typos until after my posts appear… :-/ -- Charles On Wednesday, October 15, 2014 at 7:40, Charles Jenkins wrote: Ken, Thanks for looking it over. :-) I

Re: Table of TextViews

2014-10-14 Thread Charles Jenkins
Can I ask you folks to look over and comment on this code? I think I’ve set up the text view and text container correctly to track the size of the text they contain, and I can notify my table view delegate when their size changes. The problem I’m having is that the table view delegate can note

Re: Table of TextViews

2014-10-14 Thread Charles Jenkins
Oops. When I pulled out this example code from the rest of my project, I mistyped something. Here is a corrected line: CGFloat hd = newFrame.size.height - oldFrame.size.height; -- Charles On Tuesday, October 14, 2014 at 8:49, Charles Jenkins wrote: Can I ask you folks to look over

Re: Table of TextViews

2014-10-09 Thread Charles Jenkins
Thank you, Ken. Originally I started out by implementing the table view using a data source and delegate. With some help from list members, I got that working pretty well except for row height. I only started my latest test app using NSArrayController and bindings because I mistakenly thought

Re: Table of TextViews

2014-10-09 Thread Charles Jenkins
Well, I was imprecise. I didn’t literally mean the text view would directly change the table view. Right now the text container and text view adjust automatically to fit the text, but my code isn’t told about any changes, so I have no opportunity to do anything to change the table view. But

Re: Open document panel always on top - Mountain Lion

2014-10-09 Thread Charles Jenkins
You need to have the document content in order to test the password, right? This might be naive, but could you load the document into an offstage memory structure (meaning, don’t plug it into the user interface yet so the user cannot see or modify it) and ask for the password only after the

Table of TextViews

2014-10-08 Thread Charles Jenkins
in the suggestion lists for table bindings. So here’s my first question: What if anything am I doing wrong when I try to bind the row height? Adding that one thing causes the error and interrupts the NIB from loading. — Charles Jenkins ___ Cocoa-dev

Re: A Stack of Editors

2014-10-06 Thread Charles Jenkins
last, after creating everything else including all the demo views, everything worked as expected. So thanks for the good advice! -- Charles On Sunday, October 5, 2014 at 9:51, Keary Suska wrote: On Oct 4, 2014, at 8:49 PM, Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com

Resize Superviews

2014-10-05 Thread Charles Jenkins
to the size of its scroll view, so the widths are handled, I think. But I don’t know where to begin to get the height to resize from the inside out. Thank you! — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Resize Superviews

2014-10-05 Thread Charles Jenkins
Well naturally, two minutes after posting this question, I finally found Apple’s TextSizingExample. I’m going to try implementing what I learned from that, then I’ll ask my question again if that’s not enough to help me cross the finish line. — Charles Jenkins On Sunday, October 5, 2014

Re: A Stack of Editors

2014-10-04 Thread Charles Jenkins
:(NSTableView*)tv heightOfRow:(NSInteger)row { return [self viewForRow:row].frame.size.height; } — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Stack?

2014-10-03 Thread Charles Jenkins
; box.borderWidth = 20; box.borderColor = [NSColor magentaColor]; box.titlePosition = NSNoTitle; [self.theStack insertView:box atIndex:ix inGravity:NSStackViewGravityCenter]; } } — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev

A Stack of Editors

2014-10-03 Thread Charles Jenkins
achieve that? — Charles Jenkins ___ 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

Re: Dragging to Rearrange Outline View

2014-09-30 Thread Charles Jenkins
, at 6:54 AM, Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com) wrote: I have a question that may be truly obvious and stupid, but here goes anyway. In my application, I’ll display an outline view, and I want the user to be able to drag nodes around to rearrange

Dragging to Rearrange Outline View

2014-09-27 Thread Charles Jenkins
on the pasteboard, as if we were dragging information in from the Finder or another application. Are those the functions I should be looking at for rearranging the outline, or am I barking up the wrong tree? — Charles Jenkins ___ Cocoa-dev mailing list

Re: Writing, then reading JSON

2014-09-22 Thread Charles Jenkins
and delete the “reconstituted” test lines, and everything still works. I have no explanation. -- Charles On Sunday, September 21, 2014 at 19:10, Charles Jenkins wrote: Just as a test, I changed my writer method to immediately try to interpret the JSON data and reconstitute the project’s

Re: Writing, then reading JSON

2014-09-21 Thread Charles Jenkins
) } All this works: reconstitutedStructureDict is a copy of structureDict, and reconstitutedProj is a copy of theProject. And the JSON file that gets written out appears okay, so my problem seems to be that NSFileWrapper.regularFileContents isn’t returning usable data. — Charles Jenkins

Writing, then reading JSON

2014-09-19 Thread Charles Jenkins
the debug: String to see what’s read from the file, and it comes back as garbage. Is calling regularFileContents the wrong way to read up my JSON file? — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Document Packages

2014-09-17 Thread Charles Jenkins
as directories. What configuration am I missing to get a document package which appears as a single file? — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Swift Compiler Bug?

2014-09-15 Thread Charles Jenkins
to everyone who answered my silly question! :-) -- Charles On Sunday, September 14, 2014 at 23:04, Quincey Morris wrote: On Sep 14, 2014, at 19:47 , Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com) wrote: let noWrappers: [AnyObject] = [] self.theFileWrapper

Updating Content of NSFileWrapper

2014-09-15 Thread Charles Jenkins
? How to I update fw's contents? } } } This is an instance method of a class which represents the subdocument. The class contains the instance variables filename: String, content: NSAttributedString, and contentWasModified: Bool. — Charles Jenkins

Re: Loading image resources

2014-09-14 Thread Charles Jenkins
Okay, here’s a point on which I may need education. Xcode created my project with an images.xcassets folder right there in it, and that’s where I’m adding my images. Do you mean that’s not enough? I need to add images.xcassets to the target somewhere else? How do I do that? -- Charles

Re: Loading image resources

2014-09-14 Thread Charles Jenkins
= bundle.imageForResource( name ) return img } Thanks! — Charles Jenkins ___ 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

Swift Compiler Bug?

2014-09-14 Thread Charles Jenkins
‘options’ in call,” and my project won’t build. Is there an error in my code, or is this a problem I should report to Apple? And in the latter case, what’s the best way? — Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Loading image resources

2014-09-13 Thread Charles Jenkins
) return img } After calling bundle.pathForResource:ofType:, imageName is nil. I think what I’m doing is what the Resource Programming Guide says to do. How am I getting it wrong? -- Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev

Re: Loading image resources

2014-09-13 Thread Charles Jenkins
*Sigh* I seem to make a typo every time I post to this list. Of course I meant that the imageFileName returned by the API call is nil. -- Charles Jenkins On Saturday, September 13, 2014 at 5:12 PM, Quincey Morris wrote: On Sep 13, 2014, at 12:28 , Charles Jenkins cejw...@gmail.com

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
with my method, but it will never get called if my binding is in the wrong place? -- Charles On Monday, September 8, 2014 at 19:24, Quincey Morris wrote: On Sep 8, 2014, at 16:00 , Charles Jenkins cejw...@gmail.com (mailto:cejw...@gmail.com) wrote: I changed the relevant method

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
return result } func outlineView( nsov: NSOutlineView!, objectValueForTableColumn tableColumn: NSTableColumn!, byItem item: AnyObject! ) - AnyObject! { let node = getDocumentNodeFrom( item ) return node } } — Charles Jenkins On Tuesday, September 9, 2014 at 15

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
as the outline view’s delegate, which of these graphical objects is supposed to be the one calling outlineView:objectForTableColumn:byItem:? Isn’t that the one where I should mess with bindings? -- Charles Jenkins On Tuesday, September 9, 2014 at 20:36, Charles Jenkins wrote: Here is my

Re: NSOutlineView

2014-09-08 Thread Charles Jenkins
: [DocumentNode] When I run my program, the outline view still shows disclosure triangles but no titles for the text view cells. -- Charles Jenkins On Saturday, September 6, 2014 at 13:42, Ken Thomases wrote: Depending on your model, you may actually find it's better to have your data source

NSOutlineView

2014-09-06 Thread Charles Jenkins
outline view’s text view cell to display it? (BTW: I am ignoring tableColumn because the table only has one column.) Thanks! -- Charles Jenkins ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Why can't I use any object as a key in a dictionary?

2010-02-01 Thread Charles Jenkins
On 2010-02-01 03:26, Roland King wrote: By the way, CALayer is a KVC compliant class so you can in fact just store a reference to an arbitrary object in it with [ layer setValue:value forKey:@KeyForObjectAssociatedWithLayer ]; Roland, I'm a noob and I'm not sure I've got a good handle on

Tabbing between cells in a complex control

2010-01-31 Thread Charles Jenkins
I have defined * A subclass of NSActionCell named CJIndicatorCell * A subclass of NSControl named CJDistributionControl The distribution control will contain more than one indicator cell. I have had no problem designing the control to the point where the cells can draw themselves and the

Re: Tabbing between cells in a complex control

2010-01-31 Thread Charles Jenkins
Graham, you are absolutely right. Sorry about the incorrect terminology. And...you put me on the right path! Tabbing in my control now works! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Fuzzy Focus Ring

2010-01-29 Thread Charles Jenkins
Thanks! You guys are the best! I expect this to work great: I'll try it out this weekend. I have come to the conclusion that the best way to enable keyboard control is to make each control knob a separate NSView so the user will tab from knob to knob. Does that sound right, and does anyone

Fuzzy Focus Ring

2010-01-28 Thread Charles Jenkins
Hi, everyone. I'm embarking on the creation of my first custom control, which will be basically like an NSSlider, but have more than one knob. To illustrate what I need it for, let's use a handy Star Trek analogy. Say Mr. Scott is in the Enterprise engine room. He has 20 units of power to

Re: Bindings: NSMutableArray - NSArrayController - NSPopUp

2010-01-21 Thread Charles Jenkins
. It's just that you have to make sure you're only mutating that property in a KVO-compliant manner. Regards, Ken On Jan 20, 2010, at 12:01 PM, Charles Jenkins wrote: Okay, let me rephrase my question... If I get a pointer to the NSArrayController and then call [myArrayController

Re: Bindings: NSMutableArray - NSArrayController - NSPopUp

2010-01-20 Thread Charles Jenkins
to be in the binding of the NSPopUp to the array controller, right? On 2010-01-17 15:17, Charles Jenkins wrote: I am struggling with bindings. I have worked through the examples in the Hillegass book, but it seems that none of the examples using NSPopUp quite matches what I need. In my app, just

Bindings: NSMutableArray - NSArrayController - NSPopUp

2010-01-17 Thread Charles Jenkins
I am struggling with bindings. I have worked through the examples in the Hillegass book, but it seems that none of the examples using NSPopUp quite matches what I need. In my app, just before a view appears, it gets handed a list of games in an NSMutableArray. It makes the array available with

Re: NSDocument

2010-01-14 Thread Charles Jenkins
I'm a noob, but I'm gonna give my interpretation anyway and let the experts have a chance to correct my misunderstanding. I think Matt means that if you use IB to look at your MyDocument.nib (or .xib), in the window where you see File's Owner and other stuff, you should NOT see another

Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-12 Thread Charles Jenkins
No, I wasn't aware of that, and I certainly don't find mention of it in the documentation for NSTableView or NSTableColumn. But tonight when I get home, I will try it! On 2010-01-11 23:53, Kyle Sluder wrote: On Mon, Jan 11, 2010 at 10:58 AM, Charles Jenkinscjenk...@tec-usa.com wrote:

What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Charles Jenkins
I'm working on the examples in the (fantastic) Hillegass book. The ZIP Inspector program works as advertised, but I'm annoyed by the fact that the filenames shown in the Table View get truncated due to the width of their column, which does not resize no matter how big I make the Table View.

Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Charles Jenkins
Resizes with Table does not help. I knew there'd be no chance of getting the behavior I want without that, so I never unchecked it. I'm sorry I forgot to mention that in my original post. On 2010 Jan 11, at 10:58, Charles Jenkins wrote: Anyone know of a combination of IB settings

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Charles Jenkins
Thank you to all who offered your expertise! Whatta dumb mistake! I thought all objects were retained once when created, not auto-released. Gah! I've been programming for 20+ years--mostly with C++ and C#. Cocoa-ObjC has the steepest learning curve of any programming I have ever done. It

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Charles Jenkins
On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it with init, or retain it, then you should not release it. Eric, thank you for stating that rule. It should be easy enough to remember and help me avoid this problem in the future. In my

Why is [NSArray arrayWithObjects:] failing for me?

2010-01-02 Thread Charles Jenkins
Hello, everyone. I'm struggling through the steep Cocoa learning curve, and even things that should seemingly be very easy turn out to be difficult for me. I have an NSView in which I ask for the player names for a 4-person game. I have hooked the NSTextField objects to IBOutlet NSTextField*

Attack My Code! Part 1

2008-06-12 Thread Charles Jenkins
I'm new at programming in Cocoa, and if it is not rude to post a big block of code to this list, I'd like to show you all a class I developed and ask you to tell me about all the ways I've screwed it up! BACKGROUND INFO I'm trying to learn Chinese and I have a bunch of comic books to (try

Attack My Code! Part 1 (postscript)

2008-06-12 Thread Charles Jenkins
Oops, I forgot to mention, I'm using garbage collection so that I won't have to struggle with retention! I wish I had edited my previous post a bit more for clarity, but it's late and I gotta get to bed. ___ Cocoa-dev mailing list

Re: Cocoa n00b frustrations

2008-06-09 Thread Charles Jenkins
Thank you to everyone who pointed out that I should implement my delegates based on signatures found in the documentation for NSControl, not NSTextField. I got the faulty signatures I used from the section of the documentation labeled 'NSText Delegate Method Implementations'. I guess that from

Re: Cocoa n00b frustrations

2008-06-07 Thread Charles Jenkins
With regard to my problems with delegates, I think maybe my frustrations stem from something about the delegation process or about text fields that I do not understand. Here is how to recreate an example of my problem. STEP 1: Start a new project called 'WhatKb' STEP 2: Add a Cocoa Objective

Cocoa n00b frustrations

2008-06-05 Thread Charles Jenkins
Hi! Despite the fact that you have heard from me before on this list, I am still an newbie trying to struggle through writing my first Cocoa app. I have experienced a couple of frustrations that I would like to share to see if anyone knows tools or practices that will help avoid them in the

Subject: Re: Keyboard Layout Services

2008-06-05 Thread Charles Jenkins
/Reference/reference.html Le 3 juin 08 à 05:49, Charles Jenkins a écrit : Hi! I'm looking to learn about modern, Cocoa equivalents for the deprecated functions described in the Keyboard Layout Services Reference. ___ Cocoa-dev mailing list (Cocoa

<    1   2   3   >