Printing in Swift

2017-03-21 Thread David Delmonte
Hello Group. I have an NSView-based app (i.e. not document-based), and I’d like to bolt on a printing subsystem. I can get NSViews in my main controller to print ok. However, I want to have a special view constructed just for printing. The view should not show in the app’s window. I cannot se

Re: Is it possible to set an NSTableView cell background color?

2017-02-23 Thread David Delmonte
On Feb 23, 2017, at 5:11 PM, corbin dunn wrote: > > >> On Feb 22, 2017, at 6:27 PM, David Delmonte wrote: >> >> I tried you solution but it doesn’t color the cell. Scratching my head some >> more.. I’ll probably ask on Stack Overflow. > > How did you get i

Re: Is it possible to set an NSTableView cell background color?

2017-02-22 Thread David Delmonte
For example: > > cell.layer.backgroundColor = NSColor.black.cgColor > > Saagar Jha > >> On Feb 22, 2017, at 16:14, David Delmonte > <mailto:ddelmo...@mac.com>> wrote: >> >> Hi all, I have a table that has records by date. I want to color those >> entrie

Re: Is it possible to set an NSTableView cell background color?

2017-02-22 Thread David Delmonte
It's cell based! > On Feb 22, 2017, at 20:38, Quincey Morris > wrote: > >> On Feb 22, 2017, at 16:14 , David Delmonte wrote: >> >> I have a table that has records by date. I want to color those entries based >> on the dec

Is it possible to set an NSTableView cell background color?

2017-02-22 Thread David Delmonte
Hi all, I have a table that has records by date. I want to color those entries based on the decade. I cannot seem to find a way to do this. Any help would be appreciated. David ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: [OT] Forums for Web Development?

2016-02-15 Thread David Delmonte
Have you tried StackOverflow? They have sister (brother?) forums, including one for web masters. I think SO would be a good place to scout around.. The second for me is YouTube/Vimeo. If you don’t minding learning from teenagers, it can be quite helpful. David On Feb 15, 2016, at 6:43 PM, John

Re: NSAttributedString: how to add an underline (dotted line) between tab stops?

2016-02-12 Thread David Delmonte
I did something similar recently with strikethrough: NSAttributedString *string1 = [[NSAttributedString alloc] initWithString:@"TRAIN - " attributes:nil]; NSAttributedString *string2 = [[NSAttributedString alloc] initWithString:@"INTERACTIVE" attributes:@{NSStrikethroughStyleAttribute

Re: [OT] Good XML Viewer App for Mac

2015-11-20 Thread David Delmonte
I like Xmplify. But if this is a one time task, there are web based services that are free.. Sent from my iPad On Nov 20, 2015, at 08:20, Dave wrote: Hi All, Could anyone recommend an XML Viewer for Mac? I just need to open XML text files are have it format the text sensibly. I’ve tried a c

NSTableView Question

2014-03-28 Thread David Delmonte
I have two tableviews. On one, when I select a row, the background is fixed to that row (just what I wanted). On the second (same app), the background is only momentarily selected. Any ideas what I should look for? The views are created in NIBz, and the table view formats are both view-based co

Why is an IKImageBrowser method not firing?

2014-03-13 Thread David Delmonte
Hi all, I have a project that includes an NSSheet that displays images. The data source methods to build the sheet are working fine. These are: - (NSUInteger)numberOfItemsInImageBrowser:(IKImageBrowserView *)view; - (id)imageBrowser:(IKImageBrowserView *) view itemAtIndex:(NSUInteger) index; The

Re: [ANN] WFBezierCombinatorics

2014-03-08 Thread David Delmonte
Thanks Noah, this is really instructive. On Mar 7, 2014, at 10:24 PM, Noah Desch wrote: I’ve written a category on NSBezierPath that allows boolean operations on paths (union, intersection, subtraction) which preserves curved elements throughout the operation and does not require "flattenin

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-09 Thread David Delmonte
Begin forwarded message: From: David Delmonte Subject: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa? Date: February 9, 2014 at 9:52:41 AM EST To: SevenBits Maybe I'm misunderstanding what I need to do. Essentially, I want the user to type an admin password b

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread David Delmonte
That's my understanding as well. So what to do? On Feb 8, 2014, at 10:21 PM, SevenBits wrote: On Saturday, February 8, 2014, David Delmonte wrote: > Good advice. Thanks Jens. Do you know of any samples that employ good > behavior? > > Right now, I'm playing with SM

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread David Delmonte
Feb 8, 2014, at 7:26 PM, Jens Alfke wrote: On Feb 8, 2014, at 2:51 PM, David Delmonte wrote: > Yep, I'm implementing "EvenBetterAuthorizationSample" code now. Does make me > sad to have to do this. I help older people use technology. They are always > forgetting their p

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread David Delmonte
On Feb 8, 2014, at 5:22 PM, Jens Alfke wrote: On Feb 8, 2014, at 12:04 PM, David Delmonte wrote: > However, this app is being designed for use at home - or - I admit - on > portables. This is not a corporate entity. Doesn't matter. Individual people have just as much right to

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread David Delmonte
I am deferring to the expertise here and will use Mike Abdullah's password logic. However, this app is being designed for use at home - or - I admit - on portables. This is not a corporate entity. I'm not claiming my app is secure: "It's a bit better than writing your password on an envelope".

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread David Delmonte
ke Abdullah wrote: http://www.mikeabdullah.net/kspasswordfield.html On 8 Feb 2014, at 00:27, David Delmonte wrote: > Hi, Is there a way to turn secureTextField on and off in Cocoa? I'd like > users to have the option to see their passwords. > In iOS, I can do something like [textFiel

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread David Delmonte
I realized I could do this: 1. use just an NSTextField, and 2. if (hiding) textField.stringValue = @"**"; Is there something I'm missing? On Feb 7, 2014, at 7:44 PM, Kyle Sluder wrote: On Fri, Feb 7, 2014, at 04:27 PM, David Delmonte wrote: > Hi, Is there a way to turn

Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-07 Thread David Delmonte
Hi, Is there a way to turn secureTextField on and off in Cocoa? I'd like users to have the option to see their passwords. In iOS, I can do something like [textField setSecureTextEntry:YES]; I found [secureTextField setEchoBullets] but that's not what I want. Thanks ___

Is this an appropriate use of NSSheets?

2013-10-26 Thread David Delmonte
Hi all, I’ve been lurking for some time, but I finally want to ask a question.. I have a cocoa app underway and I'm thinking about how to get people to enter and/or change textFields. The main window is an NSTableView, and there are subordinate tables, from which people may add/choose selectio

Re: developer.apple.com under maintenance for a few days now?

2013-07-21 Thread David Delmonte
t; Jean Suisse > Institut de Chimie Moléculaire de l’Université de Bourgogne > (ICMUB) — UMR 6302 > > > On Jul 21, 2013, at 4:23 PM, David Delmonte wrote: > >> hmm. the referenced site shows developer.apple.com being up. This is >> correct. However, if you select

Re: developer.apple.com under maintenance for a few days now?

2013-07-21 Thread David Delmonte
hmm. the referenced site shows developer.apple.com being up. This is correct. However, if you select any of the dev groups (iOS, OSX, Safari), they are not up. On Jul 21, 2013, at 5:18 PM, Jean Suisse wrote: > Dear Laurent, > > Every now and then such questions arise (for developer, bug repo

Re: Issue with Core Data Model

2013-01-11 Thread David Delmonte
note to self: learn to read. On Jan 11, 2013, at 11:59 AM, Mike Abdullah wrote: On 11 Jan 2013, at 16:35, David Delmonte wrote: > I think that now, entities must start with a capital letter.. Amy has an *attribute* named "description";

Re: Issue with Core Data Model

2013-01-11 Thread David Delmonte
I think that now, entities must start with a capital letter.. On Jan 11, 2013, at 8:22 AM, Amy Gibbs wrote: I've got an app that I write just for me. I've been using it for a couple of years on 10.5. Everything has now been upgraded and I'm on 10.8. I need to upgrade the app as it doesn't wor

iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread David Delmonte
After changing a setting and removing a subview from a UITableDetailView, I get crashes when I accidentally swipe the detail view. This is the crash message: VM Regions Near 0xa7c98f9b: __LINKEDIT 8feea000-8fefd000 [ 76K] r--/rwx SM=COW /usr/lib/dyld --> Subma

Segmented Control Appearance

2012-03-28 Thread David Delmonte
I'm building an app for iOS 5.x and am trying to use the new UIAppearance capability. I want to style a UISegmented Control title as follows: UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:segments]; segmentedControl.segmentedControlStyle =

Adding a background image to the GLPaint sample

2012-03-28 Thread David Delmonte
Hi, I'm trying to do the above. I've added a simple UIButton at the AppDelegate level (as there is no ViewController). When the button is tapped: - (IBAction)pictureButtonTapped:(id)sender { NSLog(@"%s", __FUNCTION__); drawingView.backgroundColor = [UIColor colorWithPatternImage:

How to parse a search string..

2012-02-12 Thread David Delmonte
I have a search box, and need to parse out some special characters (' and \). The search bar text is sbar.text.. How do I interrupt the string before it is sent and remove (or warn) of these characters... ? Many thanks.. I've tried this: if ([sbar.text isEqualToString:(@"'")] || [sbar.text isE

Predicate search across Core Data entities.

2012-02-01 Thread David Delmonte
Hello Everyone! I am trying to understand if it's possible (and then how to do it) to employ a UISearchBar to find data that cuts across core data entities. I have a model that basically has one mainEntity, then a personEntity, placeEntity, and some others. A record in the mainEntity can have

Cocoa based Data Model dilemna

2011-01-26 Thread David DelMonte
x27;m having a hard time finding a good/relevant example.. I would appreciate any thoughts on this.. David DelMonte ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac