Re: enhancing NSTextView for optionally-hidden text

2012-11-20 Thread Quincey Morris
On Nov 20, 2012, at 21:03 , Kurt Bigler wrote: > Given how this view is used, for appending only in the style of an uneditable > text log permitting user selections and Copy, the easiest way I can think to > implement it is to maintain two text views, one with hidden text included, > and one w

Re: Getting a .icns file from IconRef data

2012-11-20 Thread Ken Thomases
On Nov 20, 2012, at 9:11 AM, Mike Abdullah wrote: > On 20 Nov 2012, at 12:53, Ken Thomases wrote: > >> I'm never sure I understand the point of referencing somebody else's Radar >> number ... > > Thanks Ken, it allows me to file duplicates for them to show Apple we care. You're welcome, but i

Can't seem to present modal storyboard scene

2012-11-20 Thread Rick Mann
Hi. I've got a part of my storyboard that has a UINavigationController and a UIViewController in that. It's triggered by tapping a button with a modal segue. But I also want to display it sometimes at application start (it's release notes). So, I do this: UIStoryboard* sb = [UIStoryboar

enhancing NSTextView for optionally-hidden text

2012-11-20 Thread Kurt Bigler
NSTextView does exactly what I need in my apps non-editable text view which functions something like a log, except for one needed function which I can best envision in the form of a text attribute "hidden", akin to hidden text features I used to use in the *past* in MS Word, in which it was poss

Re: "The timestamp service is not available"

2012-11-20 Thread Todd Heberlein
On Nov 20, 2012, at 8:15 PM, Graham Cox wrote: > I'm getting an error from codesign: The timestamp service is not > available.Command /usr/bin/codesign failed with exit code 1 > > Huh? I rebooted and still get the problem. I can't get any work done. What > gives? There is a similar thread i

"The timestamp service is not available"

2012-11-20 Thread Graham Cox
I'm getting an error from codesign: The timestamp service is not available.Command /usr/bin/codesign failed with exit code 1 Huh? I rebooted and still get the problem. I can't get any work done. What gives? --Graham ___ Cocoa-dev mailing list (Co

Re: Dumb question about unit testing

2012-11-20 Thread Graham Cox
On 21/11/2012, at 12:55 AM, William Squires wrote: > I was just wondering if there was some way to make an app that could > create/edit these saved objects directly at the binary level so I could make > sure of the intermediate results from option #1! The Property List Editor utility that co

Re: removeObserver with keyPath nil

2012-11-20 Thread Fritz Anderson
On 20 Nov 2012, at 11:16 AM, Gordon Apple wrote: > What¹s the story on removeObserver:self forKeyPath:nil, called in dealloc? > Supposedly, this works. The docs don¹t say you can¹t use nil. However, I > have run into at least one place where did not work. We converted from GC > to ARC and have

Re: Notification for if User changes Finder Label on File

2012-11-20 Thread Jean-Daniel Dupas
You can use the libdispatch to monitor file changes (using DISPATCH_SOURCE_TYPE_VNODE). You can also use a kqueue to look for change on a specific file. If you want a Cocoa wrapper, there is the well known UKKQueue class available on the net. Both solutions are far more efficient if you have t

Notification for if User changes Finder Label on File

2012-11-20 Thread Michael Starke
Sorry for asking this question again, but i did not find any more details about how to improve what I want to achive or if the way i do it is the only way to go. Therfore I'm politly asking again. Situation is, that I need to watch a file (Volume to be precise) for any changes the user makes

removeObserver with keyPath nil

2012-11-20 Thread Gordon Apple
What¹s the story on removeObserver:self forKeyPath:nil, called in dealloc? Supposedly, this works. The docs don¹t say you can¹t use nil. However, I have run into at least one place where did not work. We converted from GC to ARC and have a bunch of these. I have seen statements that it worked u

Re: MacOS: Selecting from Multiple tables in the same window

2012-11-20 Thread Kyle Sluder
On Sat, Nov 17, 2012, at 07:36 AM, Joseph Ayers wrote: > In MacOS 10.8 I have a window that contains two NSTableViews > clipListTable and > tablesTable > > > In the data model. tablesTable has a to-many relationship with the > selection of clipListTable What does this mean? Table views cannot ha

Re: Getting a .icns file from IconRef data

2012-11-20 Thread Mike Abdullah
On 20 Nov 2012, at 12:53, Ken Thomases wrote: > On Nov 19, 2012, at 12:36 PM, Mike Abdullah wrote: > >> On 17 Nov 2012, at 04:09, Ken Thomases wrote: >> >>> You should be aware that a bug was introduced to Snow Leopard with its last >>> major update (10.6.8), such that the CGImageDestination

Re: Dumb question about unit testing

2012-11-20 Thread William Squires
In other words, you bootstrapped the process, right? You generated a class that had encodeWithCoder:, wrote out the results, then went back and coded initWithCoder:, using the written out stuff to pull it back in? That's what I was thinking, too. I was just wondering if there was some way to m

Re: Getting a .icns file from IconRef data

2012-11-20 Thread Ken Thomases
On Nov 19, 2012, at 12:36 PM, Mike Abdullah wrote: > On 17 Nov 2012, at 04:09, Ken Thomases wrote: > >> You should be aware that a bug was introduced to Snow Leopard with its last >> major update (10.6.8), such that the CGImageDestination API produces corrupt >> ICNS files. So, if you are mai

MacOS: Selecting from Multiple tables in the same window

2012-11-20 Thread Joseph Ayers
In MacOS 10.8 I have a window that contains two NSTableViews clipListTable and tablesTable In the data model. tablesTable has a to-many relationship with the selection of clipListTable In the window controller awakeFromNib I set the window controller to be the delegate of the two tables - (vo

why LSSharedFileListInsertItemURL function can't work?

2012-11-20 Thread songhf
Hi all, In my code below i used LS functions to do something, but i can't get the result what i wanted. Somebody can tell me which i missed ? thank you! First I generate a IconRef variable and used in LSSharedFileListInsertItemURL(): IconRef iconRef = NULL; CFURLRef tCFURLRef = CFBundleC