Re: Template Images in Table Cells

2011-12-29 Thread Seth Willits
On Dec 29, 2011, at 1:42 PM, Kyle Sluder wrote: >> So it seems there's more to it than simply having the template image be in >> the button cell. > > Did you remember to set backgroundStyle=NSBackgroundStyleRaised on the > NSButtonCell? > > This is described in the Text and Image Effects sectio

Re: iOS From 1,99 To 1.99

2011-12-29 Thread Sandro Noël
Jens, thanks for replying. a, It's a convert From local, not Convert To local !!! I won't soon forget this one :) Sandro. On 2011-12-29, at 6:22 PM, Jens Alfke wrote: > > On Dec 29, 2011, at 1:39 PM, Sandro Noël wrote: > >> NSLocale *locale = [[NSLocale alloc]initWithLocaleIdentifier:@"en

Re: Code error in Your First Mac App tutorial..

2011-12-29 Thread Peter Teeson
On 2011-12-29, at 9:43 PM, Conrad Shultz wrote: > "textField" is the name of the *property*. "_textField" is the name of > the (private) *instance variable* (ivar) that is backing the property. Thanks Conrad for that full explanation which I now fully understand. Actually the way I think of it n

Re: Code error in Your First Mac App tutorial..

2011-12-29 Thread Gary L. Wade
Because there is no instance variable named textField, but there is one named _textField. The property declaration makes available calls [self textField] and [self setTextField:x] which are the same as self.textField in get (x = self.textField) and set (self.textField = x) operations, respectiv

Re: Code error in Your First Mac App tutorial..

2011-12-29 Thread Conrad Shultz
On 12/29/11 6:07 PM, Peter Teeson wrote: > The declaration in the Interface .h file, generated by making the Outlet > connection. is: > @property (weak) IBOutlet NSTextField *textField; > To me that @property statement gives the explicit name textField. > The generated @synthesize statement in the

Re: Code error in Your First Mac App tutorial..

2011-12-29 Thread Peter Teeson
Thanks for your reply Ken. But I still don't understand. See bottom post. On 2011-12-29, at 5:23 PM, Ken Thomases wrote: > On Dec 29, 2011, at 3:38 PM, Peter Teeson wrote: >> I'm familiarizing myself with Xcode 4.2.1 under Lion 10.7.2 so am doing the >> "Your First Mac App" tutorial. >> This code

Re: RaiseMan Exception

2011-12-29 Thread Bayes Scott F
I think it's addressed in the errata for the book on Bignerd's web site. ScottB On Dec 29, 2011, at 15:39 , Todd Heberlein wrote: > > On Dec 29, 2011, at 1:50 PM, Conrad Shultz wrote: > >> This sounds like Lion auto saving. Are you on Lion? If so, do you return YES >> from -autosavesInPlace

Re: Template Images in Table Cells

2011-12-29 Thread Lee Ann Rucker
>On Dec 28, 2011, at 3:19 AM, Lee Ann Rucker wrote: >>> I'm currently drawing the image in my custom cell using [image >>> drawInRect:], the image is a proper template image (the property is YES >>> etc), but it's still just a grayscale image. > >> You have to let the cell draw the image.

Re: RaiseMan Exception

2011-12-29 Thread Todd Heberlein
On Dec 29, 2011, at 1:50 PM, Conrad Shultz wrote: > This sounds like Lion auto saving. Are you on Lion? If so, do you return YES > from -autosavesInPlace in your NSDocument subclass? Yes. I just created a new document-based app to test it, and sure enough, the template code that is created has

Re: iOS From 1,99 To 1.99

2011-12-29 Thread Jens Alfke
On Dec 29, 2011, at 1:39 PM, Sandro Noël wrote: > NSLocale *locale = [[NSLocale alloc]initWithLocaleIdentifier:@"en_US"]; You're trying to parse a Canadian-format string, but initializing the formatter with the US locale. You probably want something like "fr_CA" (since I'm assuming this is a Q

Re: Code error in Your First Mac App tutorial..

2011-12-29 Thread Ken Thomases
On Dec 29, 2011, at 3:38 PM, Peter Teeson wrote: > I'm familiarizing myself with Xcode 4.2.1 under Lion 10.7.2 so am doing the > "Your First Mac App" tutorial. > > This code snippet from the tutorial is incorrect and causes an error in > compilation. > if (sender == textField) { senderNa

Re: RaiseMan Exception

2011-12-29 Thread Conrad Shultz
This sounds like Lion auto saving. Are you on Lion? If so, do you return YES from -autosavesInPlace in your NSDocument subclass? (Sent from my iPhone.) -- Conrad Shultz On Dec 29, 2011, at 13:14, Todd Heberlein wrote: > > On Dec 29, 2011, at 12:57 PM, Todd Heberlein wrote: > >> Ah... I figu

Re: RaiseMan Exception

2011-12-29 Thread Ken Thomases
On Dec 29, 2011, at 3:14 PM, Todd Heberlein wrote: > (1) Add one Person object > (2) wait 30-60 seconds. > > crash. > > No clicking on the Edit menu. No clicking away to another application. On Dec 29, 2011, at 2:52 PM, Todd Heberlein wrote: > The exception is from the default template code: >

Re: Template Images in Table Cells

2011-12-29 Thread Kyle Sluder
On Thu, Dec 29, 2011 at 12:26 PM, Seth Willits wrote: > On Dec 28, 2011, at 3:19 AM, Lee Ann Rucker wrote: > >>> I'm currently drawing the image in my custom cell using [image >>> drawInRect:], the image is a proper template image (the property is YES >>> etc), but it's still just a grayscal

Re: RaiseMan Exception

2011-12-29 Thread Todd Heberlein
On Dec 29, 2011, at 1:27 PM, Jens Alfke wrote: > Well, show us some code. (I don't have that book you're working from.) > What is the line that raises the exception? What are the values of variables > at that point? It is the default code from the Document-based application. It is the @throw

Code error in Your First Mac App tutorial..

2011-12-29 Thread Peter Teeson
I'm familiarizing myself with Xcode 4.2.1 under Lion 10.7.2 so am doing the "Your First Mac App" tutorial. This code snippet from the tutorial is incorrect and causes an error in compilation. if (sender == textField) { senderName = @"textField"; }……. The error is "Use of undeclared iden

iOS From 1,99 To 1.99

2011-12-29 Thread Sandro Noël
Greetings! This is simple I'm sure and I'm just missing the proper class to do it. I need to convert a string representation from Canadian local to US Local. 1,99 to 1.99 The model is a float called quantity. >From that model I pick up the value and display a localized representation of >that f

Re: RaiseMan Exception

2011-12-29 Thread Jens Alfke
Well, show us some code. (I don't have that book you're working from.) What is the line that raises the exception? What are the values of variables at that point? —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: RaiseMan Exception

2011-12-29 Thread Todd Heberlein
On Dec 29, 2011, at 12:57 PM, Todd Heberlein wrote: > Ah... I figured out an even easier way to repeat the issue. Even simpler! (sorry for all the spam) (1) Add one Person object (2) wait 30-60 seconds. crash. No clicking on the Edit menu. No clicking away to another application. Slightly a

Re: RaiseMan Exception

2011-12-29 Thread Todd Heberlein
Ah... I figured out an even easier way to repeat the issue. (1) Run the application. (2) Add one Person (3) Click on Mail application to bring it to the front. (4) wait just a second or two then crash The exception is thrown from the same place. Is this an iCloud thing by any chance? I haven't

RaiseMan Exception

2011-12-29 Thread Todd Heberlein
I'm getting an exception thrown that I am trying to figure out. I'm working through "Cocoa Programming for Mac OS X" fourth edition, and added the first undo code in chapter 151 -- the Undo code for adding and removing Person objects. Testing seems to work fine, except when I do repeated Undo an

Re: Template Images in Table Cells

2011-12-29 Thread Seth Willits
On Dec 28, 2011, at 3:19 AM, Lee Ann Rucker wrote: >> I'm currently drawing the image in my custom cell using [image >> drawInRect:], the image is a proper template image (the property is YES >> etc), but it's still just a grayscale image. > > You have to let the cell draw the image. [NSIma

UIToolbar, can't access buttons added in IB

2011-12-29 Thread Alexander Reichstadt
Hi, in my UIViewController using IB I can add buttons to its view's toolbar bar, I am referring to that bar widget thing at the bottom, just in case someone was as confused as I was at first. Anyway, I can see them in IB as well as in my running app. Yet, when debugging, I found no way to actua

Re: how to cancel call to CSSM_SignData

2011-12-29 Thread Jens Alfke
On Dec 29, 2011, at 10:23 AM, Rajendran P wrote: > I have multithreaded App which uses the certificate . the call to > CSSM_SignData function invokes the ( SecurityAgent - keychains ) prompt for > keychain password . the call to CSSM_SignData is blocking till the user > responds to prompts

Why is +[NSFileVersion(NSTemporaryCompatibility) unresolvedConflictsExistForItemAtURL:] hanging/

2011-12-29 Thread James Bucanek
Greetings, I recently upgraded my primary development system to Lion and I'm encountering a phenomenon with a lot of different applications (not just my own) where the app will hang for 20 seconds or more when it's first launched or a document it opened. sample shows this on the main thread:

how to cancel call to CSSM_SignData

2011-12-29 Thread Rajendran P
I have multithreaded App   which uses the certificate . the call to  CSSM_SignData function invokes the ( SecurityAgent - keychains ) prompt for keychain  password . the call to CSSM_SignData is blocking till the user responds to prompts (the current thread is blocked). i need to cancel the pro

Re: Converting to ARC

2011-12-29 Thread Martin Hewitson
Ah, I missed the disclosure triangle. Unfortunately, unchecking that file didn't seem to stop the converter from checking it. I needed to do a Clean first. Just 11 issues to go Thanks! Martin On 29, Dec, 2011, at 06:41 PM, Zac Bowling wrote: > Uncheck those files in the ARC converter s

Converting to ARC

2011-12-29 Thread Martin Hewitson
Dear list, I'm trying to convert a project to ARC using the Refactor -> Convert to Objective-C ARC... command. My project uses RegexKitLite which is upsetting the conversion process. It shows 68 reasons why the conversion is not possible. So I tried adding -fno-objc-arc to the compiler flags f

Re: How to add "filter" to capture video from the camera?

2011-12-29 Thread douglas welton
Hi, Step A: In your delegate for AVCaptureVideoDataOutput, you can use the method - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection to grab CMSampleBufferRef representing each frame. Y

Re: MVC Theory Question

2011-12-29 Thread Mike Abdullah
On 28 Dec 2011, at 17:05, Philip McIntosh wrote: > > I am just wondering about something with respect to the Model-View-Controller > (MVC) design pattern. Should any validation of input or output be done by the > model class which is handling and processing the data, or is validation more > p

Re: viewWillAppear not called with UINavigationController containment

2011-12-29 Thread Matt Neuburg
On Dec 28, 2011, at 5:49 PM, Roland King wrote: > So I found that it's almost impossible NOT to get viewWillAppear and all the > other messages in perfect order for every view every single time. As long as > you call addChildViewController and didMoveToParent (either bracketing the > add of th

AVPlayerLayer on Lion will only play one movie then zaps super layer

2011-12-29 Thread Michael Crawford
I'm creating a simple menu-drive movie player and have run into a problem with AVPlayerLayer. The first time I attach a player with a movie the playback is fine. When a second movie is selected from the menu, I never receive a status of -[AVPlayerLayer readyForDisplay] set to true. If I ignor

Re: How to get rid of the back button in UIView

2011-12-29 Thread Alexander Reichstadt
Thanks, this works. On 29.12.2011, at 11:45, lbland wrote: > hi- > > On Dec 29, 2011, at 5:35 AM, Alexander Reichstadt wrote: > >> Please, can someone help? > > navigationItem.hidesBackButton = YES; > > ?? > > ... but maybe your detailed view should be some other type of modal view > cont

Re: How to get rid of the back button in UIView

2011-12-29 Thread Roland King
.. or even setHidesBackButton:YES animated:NO .. what's up with me today ... On Dec 29, 2011, at 6:41 PM, Roland King wrote: > [ setHidesBackButton:NO animated:NO ] ? > > > On Dec 29, 2011, at 6:35 PM, Alexander Reichstadt wrote: > >> Hi, >> >> this might be totally trivial, but all sugge

Re: How to get rid of the back button in UIView

2011-12-29 Thread Roland King
[ setHidesBackButton:NO animated:NO ] ? On Dec 29, 2011, at 6:35 PM, Alexander Reichstadt wrote: > Hi, > > this might be totally trivial, but all suggestions I found in the docu and on > the web failed. I don't want my detail view to show any kind of back button. > So from the documentation

How to get rid of the back button in UIView

2011-12-29 Thread Alexander Reichstadt
Hi, this might be totally trivial, but all suggestions I found in the docu and on the web failed. I don't want my detail view to show any kind of back button. So from the documentation I came up with the following possibilities: 1. set leftItemsSupplementBackButton to NO 2. set leftBarButtonIte

Re: Finder File Size discrepancy..

2011-12-29 Thread Conrad Shultz
On Dec 28, 2011, at 8:31, John Hawkinson wrote: > Conrad Shultz wites: >> * Will a file fit on a storage medium? >> * How long will it take a file to download? >> * What percentage of a file do I already have? >> * (Implicitly) can I manipulate the contents of the file without slowing >> my compu