Re: filterPredicate not effecting NSArrayController

2012-11-21 Thread Ken Thomases
On Nov 21, 2012, at 6:27 PM, Erik Stainsby wrote: >[self.peopleArrayController setFilterPredicate: nil]; >[self.peopleArrayController setFilterPredicate:p]; >[self.peopleArrayController setFilterPredicate:cp]; >[self.peopleArrayController rearrangeObjects]; >

Re: nssound question

2012-11-21 Thread Dave Fernandes
In System Preferences > Sound, there is a setting to "Play sound effects through…" I believe this changes where alert sounds are played. I expect NSSound by default uses the selected sound output device (selected in the Output tab of the preference panel). But it seems to have a setPlaybackDevi

Re: nssound question

2012-11-21 Thread Marco S Hyman
On Nov 21, 2012, at 6:04 PM, Keary Suska wrote: >> Are you sure this is the case? All sounds (including system beeps) on my >> Macs always play through external speakers when connected, and I don't seem >> to have any way to tell it otherwise… Sound preference pane, Sound Effects tab. It lets

Re: nssound question

2012-11-21 Thread Keary Suska
On Nov 21, 2012, at 3:54 PM, Rick C. wrote: > In my project there are times I call NSBeep and times when I use NSSound and > play one of Finder's system sounds that have to do with file-movement (for > example the undo sound). Problem is NSBeep gets played through the user's > internal Mac spe

nssound question

2012-11-21 Thread Rick C.
Hi, In my project there are times I call NSBeep and times when I use NSSound and play one of Finder's system sounds that have to do with file-movement (for example the undo sound). Problem is NSBeep gets played through the user's internal Mac speakers where as using NSSound is played through a

NSRulerMarker question

2012-11-21 Thread Graham Cox
Hi all, I'm adding ruler markers to a horizontal ruler view, and setting the client of the ruler to my custom view. When I drag the ruler markers, the client view receives the client messages as documented. What I want to do is move a vertical line in my view as the marker moves. So, when I ge

iPad to Desktop over WiFi

2012-11-21 Thread Ian was here
I would like to write an iOS app that can communicate with a Mac or PC over a WiFi connection without having to go over the internet. Has anyone attempted this? If so, did you use TCP/IP or HTTP? Thank you. ___ Cocoa-dev mailing list (Cocoa-dev@lists.

filterPredicate not effecting NSArrayController

2012-11-21 Thread Erik Stainsby
Hello list, I have the following code as the action for an NSSearchField (lifted liberally from a CIMGF article)): - (IBAction) updateFilter:(id)sender { // clobber any previous value - from SO article - has no effect [self.peopleArrayController setFilterPredicate: nil];

Re: NSFileManager - Incompatible persistent store

2012-11-21 Thread Tom Miller
Sorry my bad! The warning states 'createDirectoryAtPath:attributes:' is depreciated. I was able to get rid of that window warning once the app launched, miss spelled something in my code. Though I'm still unable to save the imputed text to the XML. I can provide the entire set of code if needed to.

Re: NSFileManager - Incompatible persistent store

2012-11-21 Thread Tom Miller
On Wednesday, November 21, 2012, Tom Miller wrote: > Sorry my bad! The warning states 'createDirectoryAtPath:attributes:' is > depreciated. I was able to get rid of that window warning once the app > launched, miss spelled something in my code. Though I'm still unable to > save the imputed text to

Re: NSFileManager - Incompatible persistent store

2012-11-21 Thread Mike Abdullah
On 21 Nov 2012, at 21:16, Tom Miller wrote: > I receive a warning in Xcode about this line of code dealing with the file > manager, > > > > fileManager = [NSFileManager defaultManager]; > applicationSupportFolder = [self applicationSupportFolder]; > if ( ![fileManager fileExistsAt

Re: NSArrayController KVO question...

2012-11-21 Thread Randy Widell
Hmm. Well, I am updating the model (and the database that backs it). I just need the UI to reflect it. I guess I was assuming that NSArrayController would respond to a value observation the same way it responds to, for instance, a selection change in the table view (updates the menu item's ch

Re: NSArrayController KVO question...

2012-11-21 Thread jonat...@mugginsoft.com
On 21 Nov 2012, at 20:42, Randy Widell wrote: > Searching around the Internet, I see a lot of questions and answers about how > to observe changes to properties of objects in a NSArrayController. > Everything I have seen, though, relates to a third object doing the > observing. For instance

NSFileManager - Incompatible persistent store

2012-11-21 Thread Tom Miller
I'm working with some code that accesses a data model in Xcode. String data is written to an xml file in the app (Mac) and displayed in a list. The inputted text is saved as body text and title. The app compiles but I receive a warning upon launch, *The managed object model version used to open

Re: Does UIStoryboard know how to find the ~ipad version automatically?

2012-11-21 Thread Rick Mann
Done. 12738494 On Nov 21, 2012, at 6:48 , Roland King wrote: > > On 21 Nov, 2012, at 5:24 PM, Rick Mann wrote: > >> I had hoped this: >> >> [UIStoryboard storyboardWithName: @"MainStoryboard" bundle: nil] >> >> would load the storyboard named "MainStoryboard~ipad", but it didn't seem t

NSArrayController KVO question...

2012-11-21 Thread Randy Widell
Searching around the Internet, I see a lot of questions and answers about how to observe changes to properties of objects in a NSArrayController. Everything I have seen, though, relates to a third object doing the observing. For instance: [arrayController addObserver: viewObject forKeyPath:

Re: IBOutlet & NSNumber

2012-11-21 Thread Randy Widell
Hey, sorry I never responded. I just completely forgot. I don't know what was up when I first read your email, but I just took in the wrong way I guess. After reading your second explanation, I understand what you meant about NSNumber. I was trying to bind the NSComboBox index to a NSNumber o

Re: FileWrapper & iCloud

2012-11-21 Thread Brad Stone
The wrapper functionality is a remnant of NSPersistentDocument but I don't use it anymore. Thanks for your answers, this was helpful. On Nov 10, 2012, at 1:28 PM, Sean McBride wrote: > On Sat, 10 Nov 2012 18:09:58 +, Luke Hiesterman said: > >> File wrappers don't make it inherently easier

Re: enhancing NSTextView for optionally-hidden text

2012-11-21 Thread Kyle Sluder
On Wed, Nov 21, 2012, at 07:25 AM, Ross Carter wrote: > The way to do this is by subclassing NSGlyphGenerator to return null > glyphs for text that has your custom Hidden attribute. A WWDC video from > a few years back shows how. Specifically, start watching from around 21:00 in the video for Sess

Re: enhancing NSTextView for optionally-hidden text

2012-11-21 Thread Ross Carter
> Nov 21, 2012, at 2:26 AM, Quincey Morris > wrote: > >> 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 t

Re: Does UIStoryboard know how to find the ~ipad version automatically?

2012-11-21 Thread Roland King
On 21 Nov, 2012, at 5:24 PM, Rick Mann wrote: > I had hoped this: > > [UIStoryboard storyboardWithName: @"MainStoryboard" bundle: nil] > > would load the storyboard named "MainStoryboard~ipad", but it didn't seem to > work. Is it supposed to? > > TIA, > -- > Rick You'd think it woul

RE: Image manipulation/composition library

2012-11-21 Thread Rufat A. Abdullayev
Hello Alex Thank you for answering I forgot to write that I need library for iOS (iPhone/iPad) devices Thank you a lot -Original Message- From: Alex Zavatone [mailto:z...@mac.com] Sent: Wednesday, November 21, 2012 5:31 PM To: Rufat A. Abdullayev Cc: Cocoa-Dev List Subject: Re: Ima

Re: Image manipulation/composition library

2012-11-21 Thread Alex Zavatone
SIPS is built in to the Mac and accessible from the shell. Also, there is imagemagick. http://www.imagemagick.org/script/index.php On Nov 21, 2012, at 7:51 AM, Rufat A. Abdullayev wrote: > Hello all > > Do anybody know is there a free image composition library like this one - > > http://w

Image manipulation/composition library

2012-11-21 Thread Rufat A. Abdullayev
Hello all Do anybody know is there a free image composition library like this one - http://www.ideveloper.az/index.php?/home/show_appl/raapiccomposer with adding text, rotating, scaling, moving etc. Cheer, RAA ___ Cocoa-dev mailing list (Cocoa-dev

Re: How To Safely Invoke a Block

2012-11-21 Thread Ken Thomases
On Nov 21, 2012, at 5:09 AM, Tom Davie wrote: > On 21 Nov 2012, at 10:56, Andreas Grosam wrote: > >> I've defined a class Foo that defines a block via a property: >> >> @property (copy) void (^progressHandler)(RXProgressState progressState, >> NSInteger totalBytesWritten, NSInteger totalBytesE

Re: How To Safely Invoke a Block

2012-11-21 Thread Tom Davie
On 21 Nov 2012, at 10:56, Andreas Grosam wrote: > I've defined a class Foo that defines a block via a property: > > @property (copy) void (^progressHandler)(RXProgressState progressState, > NSInteger totalBytesWritten, NSInteger totalBytesExpectedToWrite); > > The property is synthesized by t

How To Safely Invoke a Block

2012-11-21 Thread Andreas Grosam
I've defined a class Foo that defines a block via a property: @property (copy) void (^progressHandler)(RXProgressState progressState, NSInteger totalBytesWritten, NSInteger totalBytesExpectedToWrite); The property is synthesized by the compiler, ARC enabled. The block is usually invoked on a pr

Does UIStoryboard know how to find the ~ipad version automatically?

2012-11-21 Thread Rick Mann
I had hoped this: [UIStoryboard storyboardWithName: @"MainStoryboard" bundle: nil] would load the storyboard named "MainStoryboard~ipad", but it didn't seem to work. Is it supposed to? TIA, -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: NSTableView animation parameters

2012-11-21 Thread Graham Cox
On 21/11/2012, at 7:21 PM, Graham Cox wrote: > Hi all, > > I'm using [NSTableView moveRowAtIndex:toIndex:] to show an animation for a > row reordering on drag/drop. I also have a related question: Is it possible to show a table row animation during the drag to have a gap open where the dro

NSTableView animation parameters

2012-11-21 Thread Graham Cox
Hi all, I'm using [NSTableView moveRowAtIndex:toIndex:] to show an animation for a row reordering on drag/drop. These rows control the ordering of a stack of adjacent views which are also animated by using [[view animator] setFrame:<>]; The idea is to make it seem that the table rows and the st