Re: Very different Document Saving in Lion, even without enabling asynchronous

2011-08-21 Thread Mike Abdullah
I was talking about the -saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo: method that -saveDocument: has always been documented to call. In practice that method operated synchronously unless there was an error, but it's clearly an asynchronous API Sent from my iPad On 2

Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
Hi, I have a question regarding UI item validation in a document-based app. This is my current design: A separate nib for the main menu, and a separate nib for the windowcontrollers to be instantiated from my document objects using makeWindowControllers. For some of the menu items, I would li

Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Bing Li
Dear all, My system is being developed. It must be done in two months. My system is based on P2P (peer-to-peer) model instead of Client/Server or Web based ones. I am not sure if such applications can be launched in Apple AppStore? Thanks so much! Bing

Re: Document-based app: UI item validation

2011-08-21 Thread Jerry Krinock
On 2011 Aug 21, at 05:02, Luc Van Bogaert wrote: > Adding a windowcontroller to the mainmenu nib also doesn't work, as the > windowcontrollers should be instantiated from my document objects. right? That is correct. > So, that leaves me the option to use the First Responder object. This does

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 15:43, Jerry Krinock wrote: > > On 2011 Aug 21, at 05:02, Luc Van Bogaert wrote: > >> Adding a windowcontroller to the mainmenu nib also doesn't work, as the >> windowcontrollers should be instantiated from my document objects. right? > > That is correct. > >> So, that leav

Re: Document-based app: UI item validation

2011-08-21 Thread Klaus Backert
On 21 Aug 2011, at 18:59, Luc Van Bogaert wrote: On 21 Aug 2011, at 15:43, Jerry Krinock wrote: On 2011 Aug 21, at 05:02, Luc Van Bogaert wrote: Adding a windowcontroller to the mainmenu nib also doesn't work, as the windowcontrollers should be instantiated from my document objects. rig

Re: Document-based app: UI item validation

2011-08-21 Thread Quincey Morris
On Aug 21, 2011, at 09:59 , Luc Van Bogaert wrote: > But this still leaves me with the question of how to reference my > windowcontroller objects from the mainmenu nib? I need this because I want to > modify the title of some menu items, depending on the state of the document > windows. So I wo

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 19:34, Quincey Morris wrote: > On Aug 21, 2011, at 09:59 , Luc Van Bogaert wrote: > >> But this still leaves me with the question of how to reference my >> windowcontroller objects from the mainmenu nib? I need this because I want >> to modify the title of some menu items, de

Re: Document-based app: UI item validation

2011-08-21 Thread Quincey Morris
On Aug 21, 2011, at 11:13 , Luc Van Bogaert wrote: > I have found a way to get what I want using the sharedDocumentController > object and the current document's list of windows. > > But actually, I'd prefer using 'validateUserInterfaceItems' as you suggest, > except that some of the menu items

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 20:40, Quincey Morris wrote: > On Aug 21, 2011, at 11:13 , Luc Van Bogaert wrote: > >> I have found a way to get what I want using the sharedDocumentController >> object and the current document's list of windows. >> >> But actually, I'd prefer using 'validateUserInterfaceIte

Re: Document-based app: UI item validation

2011-08-21 Thread Quincey Morris
On Aug 21, 2011, at 12:22 , Luc Van Bogaert wrote: > What I was trying to explain: I want to change the title of a menuitem, which > opens a submenu. Of course the menu items in that submenu all have actions, > but the action of the menuitem I'm trying to change is '' submenuAction". OK, gotcha

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Jens Alfke
On Aug 21, 2011, at 5:45 AM, Bing Li wrote: > My system is being developed. It must be done in two months. My system is > based on P2P (peer-to-peer) model instead of Client/Server or Web based > ones. I am not sure if such applications can be launched in Apple AppStore? I don’t see why not. The

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 21:57, Quincey Morris wrote: > On Aug 21, 2011, at 12:22 , Luc Van Bogaert wrote: > >> What I was trying to explain: I want to change the title of a menuitem, >> which opens a submenu. Of course the menu items in that submenu all have >> actions, but the action of the menuite

Re: [SOLVED] Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
>> My solution was to assign the menu item (the one with the submenu) a dummy >> action that does nothing. Then I used the normal >> 'validateUserInterfaceItem:' mechanism to enable or disable the menu item >> with that action, based on whether all of the submenu items were enabled or >> not.

Re: Crash Reporter for Lion

2011-08-21 Thread Graham Cox
On 20/08/2011, at 6:18 AM, Wilker wrote: > You have any recommendations on what I could use for that? If your app is going to be on the App Store, the standard Apple crash reporter is all you need - when Apple receive crash reports for your app, they are passed along to your App Store account

Re: Transparency of textured controls

2011-08-21 Thread Andreas Mayer
Am 19.08.2011 um 21:36 schrieb Leo: > Actually, I finally realized what the real issue is: Apple for some reason > didn't "refresh" NSSegmentedControl Rounded style to match the new appearance > of NSTabView controls on Lion. I guess that's intentional. The 'Capsule' style does look like the N

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Bing Li
Dear Jens and Evadne, I appreciate so much for your replies! On the iPad, I program with BSD socket to communicate with a cluster which is implemented with Java/Linux. The distributed model is based on the one of P2P. I hope it could run on WiFi or 3G environment. Best regards, Bing On Mon, Aug

Re: Crash Reporter for Lion

2011-08-21 Thread Wilker
Nice to now about it Graham, But in my case its a beta-version of my software, so, It will be out of App Store (at least for now). The FeedbackReporter worked well here :) Thanks Sean. --- Wilker Lúcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600 On Sun, Aug 21, 2011 at 7:

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Jens Alfke
On Aug 21, 2011, at 9:27 PM, Bing Li wrote: > On the iPad, I program with BSD socket to communicate with a cluster which is > implemented with Java/Linux. The distributed model is based on the one of P2P. Um, that’s about as vague a description as possible, but OK. > I hope it could run on WiF

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Bing Li
Dear Jens, Thanks again for your reply! According to your email, P2P is not available on 3G? If so, P2P based applications cannot be launched in AppStore? Without 3G's support, how can a P2P system run in a wireless environment? Best, Bing On Mon, Aug 22, 2011 at 1:18 PM, Jens Alfke wrote: >

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Graham Cox
On 22/08/2011, at 3:32 PM, Bing Li wrote: > Without 3G's support, how can a > P2P system run in a wireless environment? Using Bluetooth. It's the only mode supported by the Game Centre at present. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Jens Alfke
On Aug 21, 2011, at 10:32 PM, Bing Li wrote: > According to your email, P2P is not available on 3G? A device can’t receive an incoming TCP connection over 3G. That’s part of the way the carriers run IP over their cell networks, not anything mandated by Apple. (All the incoming signaling handl

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-21 Thread Bing Li
Dear Jens, I just know about the constrains on 3G. Thanks so much for your replies! I will implement my system on WiFi first. Because of LAN, the multicast is not so flexible as on a true P2P. The load on my server must be high. On 3G, the iPad must always establish the connection and send reque