• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Repost : Nested Modal Window in Cocoa framework.Is it a bug in Cocoa framework?Anyone from Apple listening?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Repost : Nested Modal Window in Cocoa framework.Is it a bug in Cocoa framework?Anyone from Apple listening?


  • Subject: Repost : Nested Modal Window in Cocoa framework.Is it a bug in Cocoa framework?Anyone from Apple listening?
  • From: Manish Pattath <email@hidden>
  • Date: Tue, 23 Mar 2004 14:27:59 +0000 (GMT)

Hi All,

We have written a TWAIN DataSource [Basically a
Scanner] which launches the UI housed in a Cocoa
Framework.

Have 2 windows [ each window is in a separate NIB
file. i.e. there are 2 nib files] which we want to
launch as Modal Windows.

First Window - Has "Ok" and "Cancel" buttons.On Click
of a "Ok" button, second window is launched.

Second Window - Has Toolbar and Contextual Menus etc.
NSScrollView etc.

On 10.2.8
It launches fine - but all the toolbar items are
disabled except for the customView containing an
NSPopupButton.
Contextual Menus don't appear[displayed on Ctrl+Click
on thumbnails in a ScrollView] at all.
Toolbar items becomes enabled when a sheet drops down.
On 10.3.2
All the toolbar items are enabled, Contextual Menus
appear very rarely but are disabled/don't appear at
all.

API's used:

- The first window is launched as Modal using
runModalForWindow.

"Cancel" button - used to close the window - [NSApp
stopModal] and then calls to "orderOut" and "close".

"Ok" button - will launch the second window - [NSApp
stopModal] and then calls to "orderOut" and
"close".Functions to launch the second window.

- Second window
On Click of a Button say "X" , a sheet drops down,
which is fine, but this launches the first window
again!!

- On Button "X" - [NSApp stopModal] , beginSheet [ to
display the sheet]

NOTE: If a call to "stopModal" is not done,my
functionality does not work.If a call is made - my
functionality works fine but launches the first window
again!!. Also Why is behaving differently on 10.2.8 &
10.3?.

Is it a bug on nested modal windows in Cocoa? OR Are
we wrong anywhere?

Kindly reply.

Thanks for any Help.

Rgds,
M

________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Go to: http://in.insurance.yahoo.com/licspecial/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: [ANN] New UKUpdateChecker (NiftyFeatures 0.3)
  • Next by Date: Re: Programmatically relaunching app
  • Previous by thread: Strange problem with NSPopUpButton on Panther!!
  • Next by thread: Binding an NSTextField to an NSString *
  • Index(es):
    • Date
    • Thread