Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 29, 2009, 07:47 AM   #1
mpemburn
macrumors member
 
Join Date: Jan 2008
Location: Bel Air, MD USA
Cocoa/Objective-C: Can I position controls programatically?

Hi,

I'm relatively new to Objective-C (several weeks) and, while a lot of things are starting to make sense, there's one thing that I can't seem to find any information on: How to position controls programatically. This is something I'm used to being able to do in the dozen other languages I've worked with over the years so it puzzles me that what I consider to be a basic facility missing from Objective-C. Probably means I'm looking at it the wrong way. Any help (except, "Why would you want to do that?") gratefully accepted.

Thanks in advance,

Mark
mpemburn is offline   0 Reply With Quote
Old May 29, 2009, 07:54 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Yes. Of course you can. Simply set the frame of the NSView. Simple.
robbieduncan is offline   0 Reply With Quote
Old May 29, 2009, 08:21 AM   #3
mpemburn
Thread Starter
macrumors member
 
Join Date: Jan 2008
Location: Bel Air, MD USA
Great! Thanks for the speedy reply!

Mark
mpemburn is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Cocoa Binding Controls to Parent Window? ArtOfWarfare Mac Programming 0 Oct 17, 2013 09:05 PM
Cocoa Touch and Objective C phalgun27 iPhone/iPad Programming 7 Aug 1, 2013 07:09 PM
Basic Objective-C Cocoa questions? cpuin Mac Programming 8 Jun 3, 2013 07:10 PM
WebView in Cocoa (Objective-C) tr!pf!3 Mac Programming 0 Aug 28, 2012 09:48 AM
How to programatically craete system restore point for backup system using objective vkumar OS X 0 Aug 27, 2012 12:52 AM

Forum Jump

All times are GMT -5. The time now is 02:27 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC