Re: Missing header files/folders?

2011-10-07 Thread Shane Stanley
On 07/10/2011, at 4:38 PM, Jens Alfke wrote: > They might not be part of the base OS install. Thanks -- that seems to be the case. Kind of surprised me... -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Missing header files/folders?

2011-10-07 Thread Jean-Daniel Dupas
Le 7 oct. 2011 à 09:02, Shane Stanley a écrit : > > On 07/10/2011, at 4:38 PM, Jens Alfke wrote: > >> They might not be part of the base OS install. > > Thanks -- that seems to be the case. Kind of surprised me… > Not so much. There is no compiler in the base system, so why bother to include

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Torsten Curdt
>> 1) Currently I set the width of the view to the page size width minus >> the left and right margin. Frankly speaking I have no clue if that is >> the right thing to do. Or is imageablePageBounds the one to use? > > I'm not sure.  I know that you can get the PMPageFormat object from the > NSPrin

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Ken Thomases
On Oct 7, 2011, at 5:05 AM, Torsten Curdt wrote: >> The -runModal method uses the shared print info object, which can be >> obtained with +[NSPrintInfo sharedPrintInfo]. You can change the shared >> print info with +[NSPrintInfo setSharedPrintInfo:], if you have reason to. >> Alternatively, y

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Torsten Curdt
Another question that came up... So I have the panel and the preview is correct. Now I click to change the orientation from portrait to landscape. Of course at a scaling factor of 100% it should fill the page, but instead it's just sticks to the previous size and centers it on the page. What am I

Re: Missing header files/folders?

2011-10-07 Thread Shane Stanley
On 07/10/2011, at 7:08 PM, Jean-Daniel Dupas wrote: > Not so much. There is no compiler in the base system, so why bother to > include framework headers ;-) But then Xcode also puts them in its own copies in the SDKs, so I guess you could argue why bother at all. -- Shane Stanley 'AppleScri

urlFromString creating bad URLs with string containing []

2011-10-07 Thread Martin Linklater
Hi - I'm writing an iOS client for an online retailer and I'm having trouble with the way NSURL encodes square brackets. I'm building an http request using a string then converting it to a NSURL before calling [NSData dataWithContentsOfURL]. The troblesome piece of the http path is: &prices[182

Re: urlFromString creating bad URLs with string containing []

2011-10-07 Thread Igor Mozolevsky
On 7 October 2011 12:45, Martin Linklater wrote: > Hi - I'm writing an iOS client for an online retailer and I'm having trouble > with the way NSURL encodes square brackets. I'm building an http request > using a string then converting it to a NSURL before calling [NSData > dataWithContentsOfUR

Re: urlFromString creating bad URLs with string containing []

2011-10-07 Thread Roland King
Is that a valid URL? I looked at the old RFC from 1994 and that defines '[' and ']' as 'national' characters and states they must not appear in URLs. So it would seem the online retailer you're dealing with accepts URLs it shouldn't accept, but doesn't accept the properly encoded version of the

Re: urlFromString creating bad URLs with string containing []

2011-10-07 Thread Martin Linklater
Thanks Roland. I'm close enough to hopefully get them to make the required changes at there end. Cheers On 7 Oct 2011, at 12:58, Roland King wrote: > Is that a valid URL? I looked at the old RFC from 1994 and that defines '[' > and ']' as 'national' characters and states they must not appear

Question in regards to UITabBarController

2011-10-07 Thread Eric E. Dolecki
I have a storyboard that kicks off with a UITabBarController pulling in relationships to UIViewControllers... producing the buttons in the UITabBarController. Works great, but was asked if I can make a static UILabel above the UITabBar that wouldn't change between views. In the AppDelegate ther

Re: urlFromString creating bad URLs with string containing []

2011-10-07 Thread Mike Abdullah
On 7 Oct 2011, at 12:45, Martin Linklater wrote: > Hi - I'm writing an iOS client for an online retailer and I'm having trouble > with the way NSURL encodes square brackets. I'm building an http request > using a string then converting it to a NSURL before calling [NSData > dataWithContentsOfU

Re: Question in regards to UITabBarController

2011-10-07 Thread Eric E. Dolecki
Within my AppDelegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(200.0, 200.0, 100, 40)]; label.textColor = [UIColor white]; label.backgroundColor = [UICo

Re: Question in regards to UITabBarController

2011-10-07 Thread Eric E. Dolecki
in viewWillAppear worked. Thanks :) Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Fri, Oct 7, 2011 at 10:15 AM, Eric E. Dolecki wrote: > Within my AppDelegate: > > - (BOOL)application:(UIApplication *)applica

Re: Missing header files/folders?

2011-10-07 Thread Kyle Sluder
On Oct 7, 2011, at 3:41 AM, Shane Stanley wrote: > On 07/10/2011, at 7:08 PM, Jean-Daniel Dupas wrote: > >> Not so much. There is no compiler in the base system, so why bother to >> include framework headers ;-) > > But then Xcode also puts them in its own copies in the SDKs, so I guess you >

Re: Quicklook not working for network volume items

2011-10-07 Thread Chris Paveglio
I don't get any error messages at all. I feel like I am misunderstanding how quicklook works. Previously I had assumed that in general, QL stores a file preview inside of the actual file, like metadata, and calling a QL panel will simply fetch and display the image from inside a file. But I'll g

Re: Quicklook not working for network volume items

2011-10-07 Thread Kyle Sluder
On Oct 7, 2011, at 8:25 AM, Chris Paveglio wrote: > I don't get any error messages at all. > I feel like I am misunderstanding how quicklook works. Previously I had > assumed that in general, QL stores a file preview inside of the actual file, > like metadata, and calling a QL panel will simply

Re: Retain/Release and Properties clarification

2011-10-07 Thread Sean McBride
On Mon, 3 Oct 2011 13:23:25 -0500, Charles Srstka said: >1. Apple reserves the underscore prefix for their own use, so you could, >at least theoretically, clash with a superclass ivar this way, and In addition to what Kyle replied, I'd just like to point out that prefixing your *methods* with an

Re: Adding "Import" to a document based application

2011-10-07 Thread Jeff Smith
No that doesn't sound right. And yes there is a better way. NSOpenPanel. >I want to add "Import" to a document based application but wasn't quite >sure if I was going about it right. > >I was going to override runModalOpenPanel:forTypes to set forTypes to the >import types and invoke URLsF

Re: adding something to a setter

2011-10-07 Thread Matt Neuburg
On Thu, 06 Oct 2011 13:28:43 +0200, Torsten Curdt said: >The property syntax is great until you need one more thing. > >Think of a NSView and that view displays a value. > > @synthesize value; > >Now you also want to setNeedsDisplay: when a new value is set. Isn't this the same as the discussion

Re: Why doesn't UIViewController retain its UISearchDisplayController

2011-10-07 Thread Matt Neuburg
On Thu, 06 Oct 2011 14:33:15 -0500, Heath Borders said: >In the UIViewController documentation about the >searchDisplayController property [1] it says: > >If you create your search display controller programmatically, this >property is set automatically by the search display controller when it >i

Problem with AVFoundation

2011-10-07 Thread Jim Adams
Ever since I installed Lion on my iMac I have been having troubles when I try to play sounds in the Simulator. My App works on the device and is in the App Store no problems. I just downloaded iOS5 to prepare for the launch and still have the same problem but I have not loaded the OS on my devic

Re: Retain/Release and Properties clarification

2011-10-07 Thread Wade Tregaskis
> In addition to what Kyle replied, I'd just like to point out that prefixing > your *methods* with an underscore is a very bad idea, since Apple does > reserve such names and a conflict will bite you at runtime possibly affecting > the binary compatibility of your app. I would argue that under

Re: Retain/Release and Properties clarification

2011-10-07 Thread Glenn L. Austin
On Oct 7, 2011, at 9:40 AM, Sean McBride wrote: > On Mon, 3 Oct 2011 13:23:25 -0500, Charles Srstka said: > >> 1. Apple reserves the underscore prefix for their own use, so you could, >> at least theoretically, clash with a superclass ivar this way, and > > In addition to what Kyle replied, I'd

Re: Retain/Release and Properties clarification

2011-10-07 Thread Sean McBride
On Fri, 7 Oct 2011 10:21:41 -0700, Glenn L. Austin said: >Do I really need to quote the C and C++ standards that states that a >leading underscore on a symbol is reserved to the implementation -- in >other words 'the implementation' is everything that you're not writing? ISO/IEC 9899:1999, Sectio

Re: adding something to a setter

2011-10-07 Thread Torsten Curdt
> Isn't this the same as the discussion we had here? > > > > If so, let's pretend I just repeat my answer. :) m. Wow - a black cat! (http://www.imdb.com/title/tt0133093/quotes) Somehow I didn't s

Re: Problem with AVFoundation

2011-10-07 Thread Matt Neuburg
On Fri, 07 Oct 2011 17:18:51 +, Jim Adams said: > I just downloaded iOS5 to prepare for the launch and still have the same > problem but I have not loaded the OS on my device so I can't test. When I > test in the iPhone 5 Simulator I get the following error La la la la, I can't hear you! :)

Re: How to blink with a focus ring of the text box?

2011-10-07 Thread Nick
Thank you for responses! ___ 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/Unsubscribe/Update your Subscription

RE: Problem with AVFoundation

2011-10-07 Thread Jim Adams
If you read the email I did say that this kind of thing was happening with my app that is already in the app store, thus not ios5. It's just that there is an actual error message when I run this in the new simulator. So may question was has anyone ever experienced this kind of thing iOS4 or high

Re: Retain/Release and Properties clarification

2011-10-07 Thread Charles Srstka
On Oct 7, 2011, at 11:40 AM, Sean McBride wrote: > On Mon, 3 Oct 2011 13:23:25 -0500, Charles Srstka said: > >> 1. Apple reserves the underscore prefix for their own use, so you could, >> at least theoretically, clash with a superclass ivar this way, and > > In addition to what Kyle replied, I'd

Re: Quicklook not working for network volume items

2011-10-07 Thread Chris Paveglio
Thanks. One thing I found out after 6 more hours... I was not forming my URL correctly when I typed part of it out by hand. @"file://localhost/Volumes/..." instead of "@"file://Volumes/..." Somehow I didn't think that "localhost" was in the path for URLs on network volumes, I usually Applescript

Re: Quicklook not working for network volume items

2011-10-07 Thread Kyle Sluder
On Fri, Oct 7, 2011 at 1:06 PM, Chris Paveglio wrote: > Thanks. > One thing I found out after 6 more hours... I was not forming my URL > correctly when I typed part of it out by hand. finger> > @"file://localhost/Volumes/..." instead of "@"file://Volumes/..." The first is valid, but you can als

Re: NSPrintInfo and NSPageLayout

2011-10-07 Thread Ken Thomases
On Oct 7, 2011, at 5:41 AM, Torsten Curdt wrote: > So I have the panel and the preview is correct. Now I click to change > the orientation from portrait to landscape. Of course at a scaling > factor of 100% it should fill the page, but instead it's just sticks > to the previous size and centers it

Re: Missing header files/folders?

2011-10-07 Thread Shane Stanley
On 08/10/2011, at 2:26 AM, Kyle Sluder wrote: > As for Mac OS X not coming with a compiler, it sure comes with multiple > Cocoa-bridged interpreters: PyObjC, MacRuby, and AppleScriptObjC. All of > these can be used to produce standalone apps. Really, the header files are > tiny and should be i

[Q] how to tell NSNotificationCenter to send posted noti?

2011-10-07 Thread JongAm Park
Hello, I have this kind of code. For NSComboBox, I defined to messages : 1. selectionDidChange 2. selectionIsChanging When a user selects other item in a combo box ( for containing list of tasks ) after changing the current one, I would like to have "selectionIsChanging" saves the new task in

Re: Retain/Release and Properties clarification

2011-10-07 Thread Andy Lee
On Oct 3, 2011, at 2:23 PM, Charles Srstka wrote: > 2. KVO’s “access instance variables directly” (mis)feature recognizes the > underscore prefix. I like to give it a prefix that KVO doesn’t know about so > that I can be sure never to end up accidentally accessing the ivars of > another object w

AuthorizationServices - what is wrong here?

2011-10-07 Thread Alexander Bokovikov
Hi, All, Here is a piece of code where I'm trying to customize the password input box. Nevertheless I can see nothing but generic icon and default prompt text. The rights are assigned and my helper tool is working correctly. The problem is just in the interface customization. Could anybody tel

[Moderator] NDA and iOS 5 -- Re: Problem with AVFoundation

2011-10-07 Thread Scott Anguish
iOS 5.0 has not been officially released, and therefore cannot be discussed in public. It violates the non-disclosure agreement you accept when you download the software. This is a public list. No NDA discussion of iOS or Mac OS X here. Please use the developer forums at devforums.apple.com S