Is there a way to use IBOutlet with compound types in IB?

I have a form which has numerous text fields with their associated labels. To avoid code duplication, rather than have something like:
UILabel* nameLabel;
UITextField* nameTextField;
NSString* nameString;
@property (nonatomic, retain) IBOutlet UILabel* nameLabel;
@property (nonatomic, retain) IBOutlet UITextField* nameTextField;
@property (copy) NSString* nameString;
where there is no explicit relationship between the various label/text fields etc, it would be nice to be able to have something like:
@interface UserInputField
UILabel* label;
UITextField* textField;
NSString* string;
UserInputField* nameInput;
// Property which links IBOutlet which links directly to nameInput fields.
The problem with this is that in Interface Builder, I can only set the IBOutlet as a property, and not a property of a property, if that makes sense (i.e you cant have something like @property (nonatomic, retain) IBOutlet UILabel* nameInput.label;).
Is there a way to be able to logically group the related items in code and also be able to set individual properties using IBuilder, or am I trying to have my cake and eat it?

m_userName wrote:
Is there a way to be able to logically group the related items in code and also be able to set individual properties using IBuilder, or am I trying to have my cake and eat it?
Yes, but it isn't trivial. You would have to write custom control for it. Here is one of the only sets of custom controls I know of: http://www.brandonwalkin.com/bwtoolkit/
Luckily, source code is included.

Similar Messages

  • Is there a way of using IE7 with Mountain Lion? There used to be this facility using Safari "Develop" with Lion, but this doesn't seem to work with ML

    Is there a way of using IE7 with Mountain Lion? There used to be this facility using Safari "Develop" with Lion, but this doesn't seem to work with ML

    Thank you for this, and to Caleb.
    I've tried using Caleb's approach (which is the same as I used with Lion), but the programme doesn't respond now that I have installed Mountain Lion.
    My problem is that I do not want to use IE7 but that a programme I need regular access to will only allow IE7 and I've been told by the developers that it is too expensive to upgrade this programme to allow it to be used by other browsers.
    So, my puzzle remains the same. I could access IE7 and use the programme using Caleb's solution with Lion. I can't do the same with Mountain Lion. I do (I think!) understand your point about the programme requiring IE7 specifically, but if it worked on Lion, why isn't it working on Mountain Lion? Or was I just lucky before?
    I'll try mende1's approach, though I doubt I'm technical enough to virtualise anything!
    Thanks again. Any further thoughts welcome.

  • Is there a way to use ipod with new computer without erasing entire library

    I'm not really tech-savvy, but I'm tossing my old computer and getting a new one - is there a way to use my ipod on my new computer without erasing my existing library? It won't let me make changes to my ipod and wants me to erase everything that is on there right now - HELP!

    Connect your iPod to your computer. When you get the message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. When your iPod appears in iTunes enable it for disk use, this is required for most if not all the utilities listed below so they can access the files: Using your iPod as a storage drive
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    iRepo Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows Versions
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows Versions
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

  • Is there any way to use video with the new Flash CC HTML5 Canvas?

    I am a long time Flash user trying to determine if this new version of the program is something to add to the workflow again (after the last several years of not being able to use it) and the tutorials I have seen are not well written. Is there a way to use a video file within the animation, like with the AS2 and AS3 versions of Flash where I could insert a video clip into a symbol and animate the symbol while the video played.
    What I need to know is what format of video file I should use and how to add it into the timeline since Flash does not seem to be allowing for any type of import for this.
    Any Thoughts?
    Thanks,
    Brett

    Ok, so there are limitations, are they written down somewhere? I have been looking for a list of do and do not functions and the ways to work around them. Are they in the documentation somewhere I haven't discovered?
    Right now all I am looking to do is create Classic Tweens that animate movement and opacity so I can create a presentation with video that includes these elements. Is that level of functionality available in the HTML5 Canvas, or is that still on the drawing board?
    Is there a specific name for what I am looking to do that would aid my search? HTML5 video is not enough since the answer has not been forthcoming in Google or on Adobe or Stack Overflow. I am starting to think that nobody has thought of this yet, or if they have they decided that it is not currently possible and skipped the part where the rest of us find out.
    Any thoughts on making the connection to either doing this or finding out that it is just not possible yet would be very helpful.

  • Is there a way to use Itunes with a windows phone?

    I just bought a windows phone and would like to bring in tracks from my Itunes library to use as ringtones. I have 5000+ tracks in my Itunes (for windows) library and refuse to purchase any more as ringtones.
    Is there a Itunes for windows phone app I can get? Or is there a good 3rd party software utility that I can use to import tracks to my phone, either using the web; or with a direct connection. My phone has the Zune software and it will not allow tracks within it used as ringtones.

    No.
    (61615)

  • Is there a way to use Dropbox with Garageband for iPad?

    I'd like to be able to Garageband projects on my iPad then upload them so students could download them and work on them and resubmit them.  Does Dropbox work with this?  Also, once I put an iPad project into the desktop version, can the iPad version use it again?  Thanks for your help in advance!

    The only way I see it working for the moment is prepping the tune on GB, sending to the students via email, then the students upload the file to GB via iTunes so they can interact with it.
    I'm still in a hybrid (iPad, PC) so I do not know about using a version of the song modified on GB for Mac.

  • Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini

    Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini (late2014)
    im currently useing my Mac mini as a portable computer, I take it to the university and use the iMacs there as a monitor but before I can do that I have to log in to my Mac mini first which means doing it blind
    is there a way to put the IMacs into display mode with out logging into my Mac mini first
    or is there a portable monitor that I can use that will not require me to login first

    This
    Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    says:
    How do I enable TDM?
    Make sure both computers are turned on and awake. 
    Connect a male-to-male Mini DisplayPort or ThunderBolt cable to each computer.
    Press Command-F2 on the keyboard of the iMac being used as a display to enable TDM.
    Note: In Keyboard System Preferences, if the checkbox is enabled for "Use all F1, F2, etc. keys as standard functions keys," the key combination changes to Command-Fn-F2.
    How do I exit TDM?
    To leave TDM, press Command-F2 on the keyboard of the iMac that is in TDM. You can also exit TDM if you shutdown or sleep either computer or detach the cable.
    Can I use a third-party keyboard or older Apple keyboard to enable TDM?
    Some older Apple keyboards and keyboards not made by Apple may not allow Command-F2 to toggle display modes. You should use an aluminum wired or wireless Apple keyboard to toggle TDM on and

  • Is there a way to use PM4.0 with Windows XPH?

    Is there a way to use PM4.0 with Windows XPH without purchasing the latest suite or upgrades?  I origionally purchased a suite with Pagemaker, Photostyler and Freehand just before Aldus went Adobe, and Win3.1 went Win95, then WinME and WinXP.  I miss PM and have several manyscripts saved on PM4.0 and can not export or import them to any current wordprocessing programs.  I was very far into one manuscript and am now in a position to finish it up but don't want to have to purchase a whole suite in order to do so.  Any suggestions for this old tightwad?  [email protected] 

    Jay Chevako wrote:
    Find an old computer and run win3.1.
    Jay
    Shouldn't that be Win3.0  c.1991?  And with a very early of version ATM (Ver 2?)  if you want to do anything with fonts?
    I think I have a WinME PC in the garage, which if you can re-format with DOS 5 and install Win3 instead (I may have the disks in the garage too), PM4 will positively scream along.
    I reckon it's non starter on a modern WinXP PC, as the OS is so different, but if you're willing to experiment, you never know!
    But if you want to open some old files to extract the text, you can open the PM4 files and save them with a d/l'ed trial copy of PM7, which will be OK on WinXP
    Iechyd da! John
    23:45 27/04/2009

  • Just upgraded to Mavericks and my HP6100 printer no longer works, when I try to reload the software it says PowerPC apps no longer supported.  Is there a way to use my HP6100 Printer with Mavericks?

    Just upgraded my 2009 iMac (3.06 Ghz, core 2 duo $GB 1067 Mhz DDR3) to Mavericks OSX 10.9.5 and my HP6100 printer no longer works, when I try to reload the software it says PowerPC apps no longer supported.  Printer says the software was improperly installed. Is there a way to use my HP6100 Printer with Mavericks or do I need to go back to Mountain Lion or Snow Leopard? 

    It's not clear whether your printer is included in the Apple list - there is an Officejet 6100 and a couple of other types. Go to the page linked to above and use the browser search for 6100.
    I'm afraid HP are notorious for not supporting older printers - I had the same problem. Probably they hope you will buy another printer (I did, but it was a Canon). I did look on HP's site and couldn't see a driver - you could give it a try (make sure you have the exactly correct printer name):
    http://www8.hp.com/uk/en/support-search.html?tab=1#/qryterm=HP6100&search_search type=s-002
    Alternatively ou could try Gutenprint (open source software):
    http://gimp-print.sourceforge.net/MacOSX.php
    I found it would indeed drive the printer, but the colour dithering wasn't very satisfactory and the duplex printing bolt-on wouldn't work. However as Gutenprint is free it's worth trying to see if it's any good for you.

  • I have an iPhone with an unlimited data plan. Is there a way to go online with a wifi only iPad using my phone for access?

    I have an iPhone with an unlimited data plan. Is there a way to go online with a wifi only iPad using my phone for access?

    If your iPhone cell carrier allows you to use Tethering, you can turn your iPhone into a wifi hotspot, then your iPad Air can connect to that for internet access.  Not all cell carriers allow tethering without you signing up for additional fees/services.  For example, AT&T in the US still has grandfathered "unlimited" data plans, but they do not allow tethering for those plans.  With AT&T you need to switch to a Mobile Share plan (or a tiered plan if still available) to use tethering (legally).

  • Is there a way to use a namespace, such as "Library", and have a program with a different namespace include the Library namespace?

    For many years, I have maintained a library of often used functions for C++.  This has become more challenging with the required namespace for C#. 
    Is there a way to use a namespace, such as "Library", and have a program with a different namespace include the Library namespace?
    bhs67

    You could create a class X in a namspace Y in a C# class library project. You can then add a reference to this class library project/assembly from every application in which you intend to use the class X in namespace Y.
    You don't add references to namespace, you add references to assemblies in .NET. You can then use a class in namespace Y of any referenced assembly by adding a using directive at the top of the code file in which you reference the class:
    using Y;
    Please remember to close your threads by marking helpful posts as answer.

  • Is there a way to use a camera connection kit with an ipod touch 64gb?

    is there a way to use a camera connection kit with an ipod touch 64gb?  Is there an App for that?

    no

  • Is there a way to use the onboard mic and an audio interface simultaneously with the iPad?

    I teach bass lessons with skype and was wondering if theres a way to do this with an ipad
    Can the ipad pic up my voice(through internal mic) and bass(throgh audio interface) simultaniusly and then use both of those signals with skype?
    Any ideas on how I might teach skype lessons with an ipad? Thanks http:/http://basslessonsunlimited.com

    Yes.
    1) Connect an Ethernet cable from one of the LAN <--> ports on your existing wireless router to the WAN "O" port on the Time Capsule
    2) Go through the standard configuration suggested by the setup "wizard"
    3) Then manually turn off the wireless function using AirPort Utility

  • Is there any way to use Internet Explorer on a Mac? I have one insurance company that I do business with that you must use internet explorer

    Is  there any way to use Internet Explorer on a Mac Book Pro? I have one company that I do business with that only uses Internet Explorer

    Internet Explorer is not available for Mac.
    But you can make Safari pretend to be Internet Explorer in some cases.
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop, move mouse down to "User Agent".
        Select Internet Explorer from popup on the rightside.
        After using Internet Explorer, revert back to Safari, doing the same routine.

  • HT4314 I have two children each with an itouch.  Is there a way of using the same AppleID but giving them separate game centre "me" users?

    I have two children each with an itouch.  Is there a way of using the same AppleID but giving them separate game centre "me" users?

    See:
    Multiple game center accounts for...: Apple Support Communities

Maybe you are looking for

  • Installing Windows 7 64 bit on a Satellite P500

    I bought the above mentioned system back in August last year with 32 bit Windows 7 installed. I understand that it's not possible to upgrade and that a complete new installation is required. Is it necessary to format the hard drive first? Have backed

  • Spam goes to junk folder & some non-spam also.

    All spam is moved to the "junk" folder. This is correct. Recently some no-spam has been moved to the "junk " folder also. How do I stop this? thanks, Keith

  • Run SGEN in linux while Importing transports from AIX app serevrs

    Hi We have multiple AIX and Linux app servers for SAP NW 2004s/SCM 5.0 systems. We completed SGEN in AIX app servers. We need to import more than 300 transports. Can we run SGEN on Linux app servers (we will remove LINUX app servers from SMLG to prev

  • How to group from two fields?

    Afternoon all, Any ideas how to group a report by using two fields in one formula? I have two fields in a table 1: Stock_Code 2: Misc_Code I need to group my report by Stock and Misc code combined. How would I be able to do this by using formula? Reg

  • File ntoskrnl.exe status: 0xc0000098

    SCCM 2012 R2 CU2 Single Primary Site Server Trying to deploy Windows Server 2008 R2 to Dell server. File ntoskrnl.exe status: 0xc0000098 Any suggestions on troubleshooting. I think the following action plan for now: 0xc000098 translates to Status_Fil