New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

XCode and Cocoa - unsure of how to use multiple windows together

Post Reply New Thread Subscribe

Thread Tools

Member Since: Apr 21, 2008
Posts: 1
-pink- is on a distinguished road

-pink- is offline
Hi everyone,
I'm very new to xcode and cocoa, I'm trying to develop an application that displays pictures on different NSWindows depending on whether they're landscape/portrait.

My problem is that I cannot get the windows to work together. I dragged and dropped windows into my MainMenu.xib from the library, and creater PortraitScreen and LandscapeScreen classes and connected one to each window. I've been trying to get a simple method which just changes text on a label on one window when a button is clicked on the main application window, i've tried putting methods in the main app.m class, and also the associated window classes, and connecting the button to the method but they just don't seem to work together..

Does anyone know why this may be and how to solve it? Thanks in advance for any help
QUOTE Thanks

xstep's Avatar
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
Have you used some of the online sources such as or a book? This question you are asking suggests you have not, or have not dug deep enough.

Look into a document based application and the graphics frameworks that allow you to read and understand images. I think you'd allow the user to choose their image, read it in, and dynamically create a new window based on the image dimensions and finally load the image (perhaps scaled) into the view of the window. Maybe this tutorial can help.

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks

Post Reply New Thread Subscribe

« Application for UML and flow chart | profiling with Saturn? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Carbon framework on XCode Rafi Shalom OS X - Development and Darwin 1 04-17-2008 01:14 PM

All times are GMT -4. The time now is 10:38 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?