Re: Obscuring an NSString

2010-12-05 Thread Kyle Sluder
On Dec 5, 2010, at 2:31 PM, Adam Gerson wrote: > Thanks to all who responded. Let me explain my situation a little > better. I am storing several string values into an XML file. I want to > obscure one of them. When I encrpyt the NSString to an NSdata I can > store the data as a string in XML, ho

Re: Cocoa/Objective-C flat name space problems

2010-12-05 Thread Jonathan Hess
On May 6, 2010, at 7:27 PM, Stephen Blinkhorn wrote: > Thanks Isaac, > > On 6 May 2010, at 16:35, Isaac Wankerl wrote: > >> With #2, you might want to investigate using ibtool and the --convert option >> to modify the nibs. Just from reading the man page, it looks like that >> might work if

Re: Obscuring an NSString

2010-12-05 Thread Ricky Sharp
On Dec 5, 2010, at 4:31 PM, Adam Gerson wrote: > Thanks to all who responded. Let me explain my situation a little > better. I am storing several string values into an XML file. I want to > obscure one of them. When I encrpyt the NSString to an NSdata I can > store the data as a string in XML, ho

Re: label color

2010-12-05 Thread Stephen J. Butler
On Sun, Dec 5, 2010 at 4:47 PM, Nick Zitzmann wrote: > No. The only parts of Carbon that have gone away are the obsolete APIs > (FSSpec, Internet Config, QuickDraw, etc.) as well as HIView. The rest of > Carbon isn't going anywhere. There are still a number of OS features that can > only be acc

Re: label color

2010-12-05 Thread Nick Zitzmann
On Dec 5, 2010, at 3:29 PM, k...@highrolls.net wrote: > How is Carbon connected to Cocoa? Carbon is a fundamental part of Mac OS X. Some Cocoa classes still use Carbon at a low level, such as NSMenu. > Should I use Carbon APIs in my Cocoa code? Why not? > Will Carbon Core go away? No. T

Re: NSView/NSTableView question

2010-12-05 Thread Rick C.
Great thanks for the replies. I was also thinking about this but I might try to add a little bit of graphics too using NSBezierPath would it still work? But at least these 2 ideas can keep me going until I get this working right. Thanks! On Dec 6, 2010, at 4:58 AM, Peter Hudson wrote: > If

Re: Obscuring an NSString

2010-12-05 Thread Adam Gerson
Thanks to all who responded. Let me explain my situation a little better. I am storing several string values into an XML file. I want to obscure one of them. When I encrpyt the NSString to an NSdata I can store the data as a string in XML, however when I read the string back in I dont know how to c

Re: label color

2010-12-05 Thread koko
How is Carbon connected to Cocoa? Should I use Carbon APIs in my Cocoa code? Will Carbon Core go away? Is this an OK question fro a Cocoa list? -koko On Dec 5, 2010, at 1:43 PM, Kyle Sluder wrote: On Sun, Dec 5, 2010 at 12:26 PM, Ariel Feinerman > wrote: Yes, I mean file attribute Use

NSView/NSTableView question

2010-12-05 Thread Peter Hudson
If the size of the table permits, when the table is empty, have the datasource return for one cell the string "Drop Files Here" When the user has dropped a file, you can adjust what the datasource returns to not show the string. Further games with setting the row height and using an attribut

Re: label color

2010-12-05 Thread Kyle Sluder
On Sun, Dec 5, 2010 at 12:26 PM, Ariel Feinerman wrote: > Yes, I mean file attribute Use FSGetCatalogInfo to get the FinderInfo struct of the file, and use the three bits at index kColor in the finderFlags field. See and for more info. --Kyle Sluder ___

Re: label color

2010-12-05 Thread Ariel Feinerman
2010/12/5 Dave DeLong > He could also be referring to the label color of a file in Finder... > > Yes, I mean file attribute > Dave > > Sent from my iPhone > > On Dec 5, 2010, at 8:50 AM, Greg Guerin wrote: > > > Ariel Feinerman wrote: > > > >> How to get label color before 10.6? > > > > > > If

NSFetchedResultsController: different sort descriptors for different sections

2010-12-05 Thread WT
I have a situation where there are two sections in a table view. The first section should have its rows sorted according to a certain index stored in the managed object, while the second section should have its rows sorted alphabetically by the name of its managed objects. How can I create a *s

Re: navigation bar tint color issue on iOS 4.2

2010-12-05 Thread Matt Neuburg
On Fri, 3 Dec 2010 15:16:58 -0500, Phillip Mills said: >On 2010-12-03, at 3:10 PM, Matt Neuburg wrote: > >> But obviously this is something the framework would rather you didn't do. :) > >...and if the framework and IB had agreed that it was a bad idea, I probably >wouldn't have bothered trying.

Re: label color

2010-12-05 Thread Dave DeLong
He could also be referring to the label color of a file in Finder... Dave Sent from my iPhone On Dec 5, 2010, at 8:50 AM, Greg Guerin wrote: > Ariel Feinerman wrote: > >> How to get label color before 10.6? > > > If you mean "using Interface Builder", select a label, choose Attributes on >

Re: label color

2010-12-05 Thread Greg Guerin
Ariel Feinerman wrote: How to get label color before 10.6? If you mean "using Interface Builder", select a label, choose Attributes on the Inspector panel. Also notice the class of the label: NSTextField. Then look in NSTextField.h: - (void)setBackgroundColor:(NSColor *)color; - (NSCo

label color

2010-12-05 Thread Ariel Feinerman
How to get label color before 10.6? -- best regards Ariel ___ 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/U

Re: NSView/NSTableView question

2010-12-05 Thread Robert Martin
Another approach that might be simpler: Set up a tabbed view with 2 views - one to receive drops with all your instructions, and the other to display the table. Switch to the drop view when the table row count is 0, and switch back to the table tab when valid drops are registered. On Dec 5, 20

NSView/NSTableView question

2010-12-05 Thread Rick C.
Hello, In my project I have a table view on the main window which accepts drops and the dropped files will show up as a list. All works normally at this point. However as an "afterthought" I was thinking to put an NSView on top with a graphic stating "Drop files here" or something to that eff

Re: Problem Binding to UserDefaults

2010-12-05 Thread Peter Zegelin
Found the problem! I hadn't checked the 'Handles Content as Compound Value' checkbox in the Array Controller Bindings. Switching this on and all now works. On 05/12/2010, at 12:01 PM, Peter Zegelin wrote: > That doesn't appear to be the problem as adding and deleting items are saved. > It's o