On 18/09/2011, at 2:04 AM, Gerriet M. Denkmann wrote:
> printShowingPrintPanel: is deprecated since 10.4 (but for some reason Xcode
> failed to tell me this) but it still works in 10.6 and it MUST call
> runModalPrintOperation..., otherwise there will be no printPanel.
I ran into the identica
On Sep 17, 2011, at 19:59 , Gerriet M. Denkmann wrote:
> My app had (before Lion) a Menu Item Save As... which brought up a save panel
> with a SavePanelAccessory, which contained a PopUpButton with all available
> stringEncodings.
>
> In Lion there is only Save... (which also shows my SavePane
My app had (before Lion) a Menu Item Save As... which brought up a save panel
with a SavePanelAccessory, which contained a PopUpButton with all available
stringEncodings.
In Lion there is only Save... (which also shows my SavePanelAccessory) for new
documents.
But after this, there is only Save
On Sep 17, 2011, at 13:45 , Scott Ribe wrote:
> But the thing is, if there's only [one?] window, a window-modal sheet is also
> application modal.
I don't understand.
Are you saying that invoking 'beginSheet…' and returning to the main event loop
is the the same thing as invoking 'beginSheet…
On Sep 17, 2011, at 1:42 PM, Quincey Morris wrote:
> Putting all that together, this gives (I think) precisely one scenario where
> an application-modal dialog sheet should be used:
>
> In a single-window non-document application, if it is necessary to block
> interaction with the single window
On Sep 17, 2011, at 09:47 , Scott Ribe wrote:
> The last 2 points of course are assuming you're doing it normally, not trying
> to make it a sheet & application modal at the same time.
>
> In other words, to display a modal dialog, this works:
>
> DebugReportTests_WC *wc = [[DebugReportTe
On Sep 17, 2011, at 10:25 AM, Torsten Curdt wrote:
> You are suggesting that this is not OK?
Holy cow that's bad! Sheets are supposed to be document modal, not application
modal. So it's wrong right there.
Next, you don't have to display the window before [NSApp runModalForWindow:],
because th
On Sat, Sep 17, 2011 at 6:15 PM, Scott Ribe wrote:
> On Sep 17, 2011, at 10:01 AM, Torsten Curdt wrote:
>
>> Not sure I understand that comment, Scott.
>
> You run it as a sheet, using beginSheetModal..., or you run it as a modal
> dialog using runModal. You can't do both.
Copying from the docs
On Sep 17, 2011, at 10:01 AM, Torsten Curdt wrote:
> Not sure I understand that comment, Scott.
You run it as a sheet, using beginSheetModal..., or you run it as a modal
dialog using runModal. You can't do both.
--
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0
On 17 Sep 2011, at 22:16, Michael Babin wrote:
> On Sep 17, 2011, at 8:02 AM, Gerriet M. Denkmann wrote:
>
>>
>> See comments below:
>>
>>>
>>> In my TestDocument (subclass of NSDocument) I added the following code (see
>>> comments inside, which explain what's happening when I do File â∫‚
>> But that's straight from the docs.
>
> You run it either as a sheet or modal, not both.
Not sure I understand that comment, Scott.
cheers,
Torsten
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
On Sep 17, 2011, at 8:02 AM, Gerriet M. Denkmann wrote:
>
> See comments below:
>
>>
>> In my TestDocument (subclass of NSDocument) I added the following code (see
>> comments inside, which explain what's happening when I do File â∫‚ Print...):
>>
>>
>> - (NSPrintOperation *)printOperationWi
On Sep 17, 2011, at 4:19 AM, Torsten Curdt wrote:
> But that's straight from the docs.
You run it either as a sheet or modal, not both.
--
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
___
Cocoa-dev mail
See comments below:
>
> In my TestDocument (subclass of NSDocument) I added the following code (see
> comments inside, which explain what's happening when I do File â∫‚ Print...):
>
>
> - (NSPrintOperation *)printOperationWithSettings:(NSDictionary
> *)printSettings error:(NSError **)outErro
In my TestDocument (subclass of NSDocument) I added the following code (see
comments inside, which explain what's happening when I do File → Print...):
- (NSPrintOperation *)printOperationWithSettings:(NSDictionary *)printSettings
error:(NSError **)outError
{
NSLog(@"%s printSettings %@
>> Any ideas why that is the case? A bug?
>
> From the NSWindow docs:
>
>> canBecomeKeyWindow
>> Indicates whether the window can become the key window.
>>
>> - (BOOL)canBecomeKeyWindow
>> Return Value
>> YES if the window can become the key window, otherwise, NO.
>>
>> Discussion
>> Attempts to ma
On Sep 17, 2011, at 5:19 AM, Torsten Curdt wrote:
> So next I re-created the NSPanel step-by-step. As it turns out
> unchecking "resize" on the NSPanel causes this weird behavior.
>
> Any ideas why that is the case? A bug?
>From the NSWindow docs:
> canBecomeKeyWindow
> Indicates whether the wi
> You’re trying to run a sheet as a modal panel; that’s not how it’s done.
> Instead you open the sheet and return to the main event loop (i.e. delete
> the last three lines). It runs asynchronously.
But that's straight from the docs.
http://developer.apple.com/library/mac/#documentation/Cocoa/Co
On 17 Sep 2011, at 07:26, Shivani Bansal wrote:
> kSecClassGenericPassword is defined in MAC OS X v10.7, not in 10.6
> Is there any other way to find out in 10.6.6 or 10.6.8
>
As Jens suggested you can try the older API which certainly is available on
10.6:
I generally use EMKeyChain wrapper c
19 matches
Mail list logo