Best way to do an inspector panel?

Ok, I've been trying to figure this out on my own, but nothing I do really seems right, and I still don't have it working perfectly anyway, so I'm asking for advice. I've got a document-based, core-data app that makes heavy use of bindings. The Core-Data model is not particularly complicated, but it's not dead simple either. There are 5 entities in it, and they each have a fair number of attributes along with optional relationships to others in the model. Each document contains an array of one of these entities (which by relationship means there are multiple instances of some other types of entities). One type of entity is only supposed to be instantiated once per document.
I want an inspector panel that lets one view and modify the attribute values of this entity that's only instantiated once. As there should only be one inspector panel in the application even with multiple documents open, obviously the inspector panel should be in a separate nib. Here's where I'm running in to trouble. What is the correct architecture for having the Inspector panel connect to the entity that's part of MyDocument? Included in this question is the solution to the problem of making the inspector panel update itself when a different document is brought to the front. The things I'm doing now are overly complicated and don't really work at all.
If anyone can explain a good way to do this, I'd really appreciate it. It seems like it has to be a common problem because there are tons of applications with a floating inspector panel which applies to the frontmost document. If anyone can point to a good tutorial that address this rather than explaining it, that would be helpful too. I haven't been able to find one searching myself. I would like something that specifically covers Core Data and Bindings, because I'm using both.

Hi,
I have the same issue, whereby I am trying to send data from my MyDocument class to instances of a Textfield which was created programatically, ie NOT in Interface Builder.
Would love to chat regarding options if possible? At the moment I am trying with Notifications, but any data is sent to all instances, rather than one particular one.
Do you use msn? Alternatively, would you contact me via http://mootymoots.me.uk so we could chat?

Similar Messages

  • What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?

    What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?
    Thanks for any help

    Hi Donavan,
    There are two options for zeroing with the NI-9237.  You can perform offset nulling and shunt calibration with a strain task, or if you use custom excitation you can use software compensation.
    See the Bridge Balancing, Offset Nulling section in  the Load, Force, and Torque Measurements tutorial. Take a measurement before the strain is applied and subtract this from all subsequent measurements.  See the above tutorial to consider the tradeoff in accuracy between these two options.
    Hope this helps,
    Jennifer O.
    Applications Engineer
    National Instruments

  • Best Way to Host Front Panel in Web Browser

    Hello  All 
               I am almost confused with all methodology that Labview have to host the Top Level front panel in Web browser. My requirement is to  Monitor and control the Front Panel from remote location using web browser, but without installing any LV Runtime engine in Client machine. Also I want to stream the Videos in same or different page. Which is the best way to do this?. Web-service or CGI 
    Thanks & Regards
    Rigilkumar 

    Rigilkumar,
    If you don't want to install the LV runtime engine, that rules out the remote front panels.  However, you should still be able to build a web service to do what you want. This will be a bit more tedious because you'll have to build a thin client to have an interface with the web service. You can find an example of a thin client built in Adobe Flex here.
    If you're looking at streaming video as well, I recommend you look over Streaming IMAQ Images Over a Network (or Internet)
    Hope this helps,
    Misha

  • Best way to create a fixed size centered Panel?

    I'm trying to figure out what the best way is to create a fixed size Panel that stays positioned in the center of its parent component/panel, even as the frame is resized. Is there a way to do this with some layout or will I need to write some code to reposition my panel each time the frame is resized?
    Thanks
    Jonathan

    This approach seems good. One thing I'm wondering, why does the GridBagLayout draw my Panel based on the preferred size and not the bounds? If I want to do some sort of fancy painting with my panel, I'll probably have to set the bounds as well I'd think.
    jonathan
    Here's a way. I won't go so far as to say "best",
    but it gets the
    job done. You need to control the layout of the
    parent in order for
    any solution to work -- some layouts will ignore the
    preferred,
    maximum, and minimum sizes of their components.
    import java.awt.*;
    import javax.swing.*;
    public class CenterTest {
         public static void main(final String[] argv) {          
              final JPanel fixedPanel = new JPanel();
    fixedPanel.setPreferredSize(new Dimension(100,
    0, 100));
              fixedPanel.setBackground(Color.BLUE);
    final JPanel panel = new JPanel(new
    ew GridBagLayout());
              panel.setBackground(Color.CYAN);
              panel.add(fixedPanel);
              final JFrame frame = new JFrame("GridBagLayout");
              frame.getContentPane().add(panel);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
              frame.setSize(200, 200);
              frame.setVisible(true);

  • What's the best way to merge, restore or reconstruct iPhoto and Aperture libraries to resolve images that are not found/offline?

    Hey there, Apple Support Communities.
    To start, I'm working on a MBP Retina 15" with a 2.3GHz i7 processor and 16 GB of RAM.  10GB free on a 256GB SS HD.  Attached are two external HDs - one 1TB Western Digital portable drive from 2011, one 2TB Porsche LaCie non-portable drive from 2013; both connected via USB.  All photo libraries in question are on the external drives.
    I have Aperture 3.5.1 and iPhoto 9.5.1.  I prefer to work in Aperture.
    The Issue(s)
    Over the years, I have accumulated a number of iPhoto libraries and Aperture libraries.  At one point, I thought my WD drive was dying so I purchased the LaCie and copied all libraries over the the LaCie drive.  (Turns out, there's probably an issue with my USB port reading drives, because I can once again see the WD drive and occasionally I can't see the LaCie drive.)
    So now I have old version of some libraries on the WD drive, and new versions on the LaCie drive.
    When I was moving things, I ran the software Gemini to de-dupe my iPhoto libraries.  Not sure what effect that may have had on my issues.
    In my main Aperture library and in some iPhoto libraries, I get the image-not-found badge or exclamation point.  I've dug through the hidden Masters folders in various libraries to find the original image.  In some cases, I have been able to find the original image, sometimes in a different version of the iPhoto library.
    My Question(s)
    1.  For Aperture libraries that have missing originals, is there some magical way to find them, or have they just disappeared into the oblivion?
    2.  For iPhoto libraries that have missing originals and I have found the original in another iPhoto library, what is the best way to proceed?
    3.  Are there quirks to merging iPhoto and Aperture libraries (by using the Import->Library) feature that I should be aware of?
    TL;DR: Too many iPhoto and Aperture libraries, and not all the original pictures can be found by the libraries anymore, though some originals still do exist in other libraries.  Steps/process to fix?
    Thank you!  Let me know if you need add'l info to offer advice.
    With appreciation,
    Christie

    That will not be an easy task, Christie.
    I am afraid, your cleaning session with Gemini may have actually removed originals. I have never used this duplicate finder tool, but other posters here reported problems. Gemini seems to replace duplicate original files in photo libraries by links, and this way, deleting images can cause the references for other images to break. And Aperture does not follow symbolic links - at least, I could never get it to find original files this way, when I experimented with this.
    1.  For Aperture libraries that have missing originals, is there some magical way to find them, or have they just disappeared into the oblivion?
    You have to find the originals yourself. If you can find them or restore them from a backup, Aperture can reconnect them. The reconnect panel can show you, where the originals are supposed to be, so youcan see the filename and make a Spotlight search.
    For iPhoto libraries that have missing originals and I have found the original in another iPhoto library, what is the best way to proceed?
    Make a copy of the missing original you found in a folder outside the iPhoto library. You can either open the iPhoto library in Aperture and use "File > Locate Referenced file" to reconnect the originals, or simply reimport them. Then Lift&Stamp all adjustments and metadata to the reimported version.
    See this manual page on how to reconnect originals:  Aperture 3 User Manual: Working with Referenced Images  (the paragraph:  Reconnecting Missing or Offline Referenced Images)
    Are there quirks to merging iPhoto and Aperture libraries (by using the Import->Library) feature that I should be aware of?
    References images will stay referenced, managed will remain managed. You need to unhide all hidden photos in iPhoto - this cannot be done in Aperture.
    and not all the original pictures can be found by the libraries anymore, though some originals still do exist in other libraries.  Steps/process to fix?
    That is probably due to Gemini's replacing duplicate originals by links, and your best cause of action is to fix this before merging the libraries. Reconnecting can be done for your iPhoto libraries in Aperture.

  • What is the best way of converting a Top Level VI into a 'sub vi' - or function ( without duplicating programming)

    Hi,
    General question here about design architecture, which i keep running into, but haven't found a really good solution.  If i write a 'Top Level VI' to do something, what is the best way of converting it into a subVI - which is call-able from other VIs, while still allowing the top level VI to have synchronised feedback/indicator updates.
    I guess the point is that when something is a top level VI you write gui logic about what happens when someone clicks buttons or whatever - which you don't want in the 'sub vi' version.
    I did at one point try having a hidden boolean button that was an input to the subVI which would let the VI know if it was supposed to be doing the front panel stuff - or simply running as a subVI.  This isn't really ideal though - since it would be better to be able to hive off the grizzly useful stuff from the fluffy - front panel updating stuff - having them together makes the VIs rather untidy.  More annoyingly though, if you have the front panel version of it running - say waiting for you to hit 'go', it breaks all the other VIs that use it as a sub vi - since they can't compile when a sub vi is already running.
    Another possibility that i tried was to basically duplicate the vi so that there was a backend part, and a front end part - and when i click 'go' the backend part is called as a sub vi.  The problem with this is that it really limits the interface that the user gets - since none of the controls on the front panel update with the results untill the sub vi is over.  I guess again i could solve this by passing references to some of the controls to update them in the subvi - but this doesn't really seem like the ideal situation if the subvi is called by something else without the same types of controls etc.
    One final idea i had was to essentially paste all the controls in the VI into a global variable file, and make the sub vi update them, and the front panel VI read from them.  This seems to 'work' - although clearly it is a work around rather than a proper solution - since i spend loads of time worrying about how i update cluster variables in the global - reading and writing.
    Does anyone have any guidance on what they do to solve this problem?
    JP

    You could run a subvis in a Subpanel on your top level.  Lets you see the current data while the subvi is running.
    --Using LV8.2, 8.6, 2009, 2012--

  • What is the best way to save data from GPIB Device in a file?

    HI!
    I have a Keithley SourceMeter and want to save readings in a File along with settings on the front panel and timestamps plus several other infos. What is the best way to do this? Which file type? Any recommendations or hints could help me?
    Thanks

    Hi Andy,
    There are 3 main file formats that you can consider writing your data out to in LabVIEW:
    ASCII
    Binary
    Datalog
    ASCII
    ASCII files are useful because every operating system and almost every application can read/write ASCII format files. Use ASCII files when:
    Other users or applications will need to access the data file.
    You will not need to perform random access file I/O
    File I/O speed is not crucial
    Disk space is not crucial
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write to Text File.vi and Read from Text File.vi
    Binary
    Binary byte stream files are more specific to data storage and retrieval. Use b
    inary files when:
    File I/O will remain in LabVIEW only -- no other applications will be needing to write/read that file. There is no standard formatting for binary files and thus other applications or operating systems may be unable to read the file.
    Files are smaller than ASCII files
    Easier and faster random access to data
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write Binary File.vi and Read Binary File.vi
    Datalog
    When to use datalog:
    If you need to record data with a mixture of types, it can be cumbersome to convert everything to ASCII or to keep track of the binary formatting.
    Datalog format is binary and internal to LabVIEW, so again only use this format if no other applications or operating systems will be needing to perform file I/O on the file.
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write Datalog File
    Example.vi and Read Datalog File Example.vi
    Good luck!
    Kileen C.
    Applications Engineer
    National Instruments

  • What's the best way to clone my boot drive?

    I just bought a new 500GB drive for my G4. What's the best way to clone my boot drive?
    Is there a way to put the new drive on the buss as a second drive and then copy everything from my boot drive to the new drive? How do I make the new drive bootable?
    Or
    Do I have to install OSX on the new drive, put the old boot drive on the buss as a second drive and migrate everything to the new drive with the Utilities Migration Assitant program?
    Are there programs available to make this easier? Where & how much?
    Thanks for any help I can get.

    bamim2:
    Dr. Smoke's FAQ Backup and Recovery has excellent advice on developing a backup strategy.
    You already have a larger extrnal HDD (Hopefully it is firewire?) The next step is to format and partition the HDD. (see step-by-step below). And thirdly you will need a good cloning utility. Carbon Copy Cloner has already been suggested, and the latest version is excellent. I, personally, prefer SuperDuper for its ease of use and efficiency. Both are great tools and relatively simple to use.
    I mentioned the hope that you have a firewire. One of the wonderful benefits of using an external firewire HDD for backing up is that you can make a bootable clone. This gives you an emergency boot drive in case of a problem. It also gives you an external device for running diagnostics and repairs from the extnernal to the computer and vice-versa.
    Congratulations on taking the first step toward securing your computer and your data!
    Formatting, Partitioning Zeroing a Hard Disk Drive
    Warning! This procedure will destroy all data on your Hard Disk Drive. Be sure you have an up-to-date, tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    Boot from the install CD holding down the "C" key.
    Select language
    Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    Option for formatting an External HDD
    Connect external HDD to computer
    Turn on external HDD
    Start up computer and log in
    Go to Applications > Utilities > Disk Utility and launch DU.
    Select your HDD (manufacturer ID) in left side bar.
    Select Partition tab in main panel. (You are about to create a single partition volume.)
    Select number of partition in pull-down menu above Volume diagram.
    (Note 1: One partition is normally preferable for an internal HDD. External HDDs usually have more than one. See Dr. Smoke’s FAQ Backup and Recovery for tips on partitioning external HDD
    Note 2: For more partitions than one, after you have selected the number of partitions you can adjust the size of the partition by selecting the top partition and typing in the size; then move down if more adjustments need to be made..)
    Type in name in Name field (usually Macintosh HD)
    Select Volume Format as Mac OS Extended (Journaled)
    Click Partition button at bottom of panel.
    Select Erase tab
    Select the sub-volume (indented) under Manufacturer ID (usually Macintosh HD).
    Check to be sure your Volume Name and Volume Format are correct.
    Optional: Select on Security Options button (Tiger) Options button (Panther & earlier).
    Select Zero all data. (This process will map out bad blocks on your HDD. However, it could take several hours. If you want a quicker method, don't go to Security Options and just click the Erase button.)
    Click OK.
    Click Erase button
    Quit Disk Utility.
    Good luck.
    cornelius

  • What's the best way to move files from my old G3 to my new Intel DuoCore?

    I just received my new Intel DuoCore 17" iMac. For years I have been using a much-loved G3 500 mHz iMac. The new Intel iMac is still in the box, but I believe it shipped with OS 10.4.4. The G3 runs 10.2.6. I have a dial-up connection to the Internet; currently DSL is not available in my neighborhood. What is the best way to move my files from the G3 to the Intel dc? Can I simply connect them with an Ethernet cable and transfer files directly? Or is my best bet to simply save the files I want to transfer to a disc and do it the old-fashioned way? Please forgive me in advance for my ignorance; although I have been a Mac user and supporter for many years, I am astonishingly ignorant when it comes to the best way to using both Mac hardward and software.
    iMac Intel DuoCore   Mac OS X (10.4.4)  

    There are two issues - 1. Getting the files moved over, and 2. Being able to open them on the Intel iMac.
    1. This can be technically easy if you are willing to spend the time. I moved all my stuff from my old Mac to my new one by hooking the two together with an ethernet cable, directly. You would need both machines to have appropriate IP addresses. (go to the network preferences and pull down the built-in ethernet panel.) Some addresses such as 192.168.1.100 and 192.168.1.101 would work with a subnet mask of 255.255.255.0) Now go to the new iMac and make sure the finder is selected (click on the desktop) and under the "GO" menu select "Connect to Server". You will need to put in the IP address of the old machine, and later it's administrative password. Then select its hard drive from the list (possibly only one choice) and it should appear as an icon on your iMac desktop. You can open this like any other drive and just drag items to the new iMac.
    2. Whether you can use all the files moved over from the old G3 is difficult to answer. You may be using Classic mode sometimes on the G3 and have some stuff created with a Classic application. You are probably aware that the new Intel iMac does not support Classic mode, so some of these files may not be useable without a bit of work (or at all, perhaps.) For instance I had to purchase Appleworks to handle some of my old Clarisworks documents because Pages couldn't understand them. Once I had them converted to Appleworks documents, I could then convert them again to Pages documents.
    I had some old MacDraw Pro documents that were equally problematic.
    I would advise you to get the new iMac out of the box and connected to your dialup internet connection first. Do all the software updates until running software updater says there is nothing new. Then you will be at 10.4.7 with all the latest security and fixes etc. Then disconnect from the internet and use an ethernet cable to get the stuff off the old computer.
    There will be lots more to do such as moving your mail, address box entries etc. later, but this is a start.

  • Best way to insert pages from a document to another

    Hi everybody,
    I need to append/insert pages from a InDesign CS4 document to another one with all the content that may be present in page.
    What is the best way to implement that? I didn't find anything similar to kAddDocToBookCmdBoss.
    The optimum would be to have something like kAddPageToDocCmdBoss for better granularity.
    Thanks a lot in advance to anybody who will express his opinion.
    Luca Severini

    The Pages panel flyout menu has a "Move Pages..." action / dialog.
    It fires off several commands:
    kCreatePageFromPageCmdBoss
    cmd target is the target document
    UIDList is the source kSpreadBoss.
    IID_ILAYOUTCMDDATA document is the target doc again.
    followed by kMoveSpreadCmdBoss and kShufflePagesCmdBoss.
    Dirk

  • Best way to organise multiple large clips and hundreds of subclips

    Situation
    I have the task of producing a suite of short 2 minute videos comprising highlights of several hours of footage in multiple large files.
    I want to extract and manage the highlights in a non-destructive way and organise them according to subject matter.
    I would then use these in several projects to create the highlights videos required.
    I am using Adobe CC, so it's CS6.
    My approach so far is to:
    1. Import all the footage into a single project as individual large clips
    2. Scrub through each clip, set in/outs and extract to subclip, store in subject matter bin
    My questions:
    1.  if I go back to the original footage and edit it, it doesn't seem to flow through to the subclips. How do I make the subclips inherit the attributes of their parent? (e.g. could be sound, colour, etc)
    2. how do I access these highlights bins from another project?
    3. is this the best way to handle my situation?
    Thanks for your input.
    Ric

    I suppose applying the effects to the source clip and rendering out a new source file is one way of doing it.  Just be very careful that you don't compress the output.  And, of course, it will double the amount of hard drive space.  I'd still make all the sub-clips first and use the "paste attributes" command.  I think you can even lasso a whole bunch of clips and paste attributes to all of them at once (they have to be in the timeline, though - not the project panel).
    It shouldn't take an awful lot of hard drive space to duplicate projects.  Just duplicate the "prproj" file, not the whole projects folder (and certainly not the source material).
    Here's a screen shot of my set-up for a complicated, 5-camera shoot of a play:
    The original project (syncing all the cameras up) is 1 MB, each successive archive gets a little bigger but the current project is only 3.8 MB.  I would imagine if you are deleting bins and sequences for the mini-projects, the prproj file would actually get smaller than the original master.
    Okay.. so here's the mantra about non-tape based video... First you back up the card (including the complete folder structure) onto an archive drive.  Next you copy this folder onto an external or RAID or other "real" archive drive.  Then (and only then) do you start editing the material!
    Ideally, you need at least three, physically separate harddrives (not partitions) in an editing station (this is true Windows or Mac).  One drive for the operating system and applications only (no media or projects or anything!).  One for working projects (each project in its own folder) where everything except the source video is stored.  And finally one for the source video.  On my system my OS drive is Tardis ('cuz I'm a geek!).  I have a Projects drive for projects (duh!) a Scratch drive for working video files and an Archive for "finished" projects waiting delivery and back-back-ups of my SD cards.

  • Best way to set up annual accounts spreadsheet

    I just bought iWork 09.
    What's the best way to set up a spreadsheet in numbers for annual accounts that list weekly totals?
    Would it be best to create a sheet for each week or one sheet with 52 tables?
    I need to summarise all 52 weeks' totals onto one table.
    I also need to date and number (1-52) each week.
    Which leads me to my next question:
    Can you select multiple sheets in numbers like you can in MsExcel? For example, to enter the same formula on multiple sheets in Excel you select them all then change the formula on one sheet.

    My 2-cents.
    Since you need to summarize all the tables, I would place them all in one sheet. Then you can have a summary table with a simple formula that sums all the tables.
    For example, if you wanted to sum cell B2 in all 52 tables, then the formula would be: =SUM(week 1:week52 :: B2)
    If you remove or add tables in between tables "week 1" and "week 52" as ordered in the panel on the left, then the formula updates accordingly. Nifty feature, but too bad it doesn't work if the tables you summarize are on separate sheets.
    I'd also add, from my own experience with spreadsheets, keep backups and you might avoid keeping multiple years in one document if you don't have a need to do it that way.
    Quickpost this image to Myspace, Digg, Facebook, and others!
    Message was edited by: scott_e

  • What's the best way to hook up the a macbook pro to an HDTV?

    I want to use my LCD HDTV to color correct and adjust levels. What's the best way to do this? I've never done it before so I'm not sure.
    Thanks in advance.
    Jordan

    You need a way to get the signal out of your Laptop... a Matrox MXO is the least expensive way to do this... you connect it to your DVI port on the MBP, and then from it to the LCD. The LCD will have to either have SDI in, or component analog in for this to work, but it's the least expensive way to do it properly. You can even setup the LCD to broadcast spec with the blue only display of color bars from the Matrox's control panel. Pretty slick actually.
    Jerry

  • What is the best way of compressing a large 3 hour final cut file

    What is the best way of compressing a large 3 hour final cut file. I shot the play and it is in final cut and I rndered it so now I have a 22gb file that I need to put on a dvd . Any suggestions
    Thanks
    Macbook Pro
    2.3 GHz Intel Core i7
    with Final Cut Pro 7.0.3
    using Lion as operating system

    Presuming your menus aren't complicated(include audio or video) the total size for the MPG-2 and AC3 files should probably be under 8GB for a dual layer disk. The inspector will tell you the estimated size. 2-pass varible bit rate would be recommended.
    Trying to fit 3 hours on a DVD-5 will only bring very noticable quality hits. Compressor will let you change the average bit rate so that you can fit 174 minutes but trade-off isn't worth it in my opinion.
    Be aware that dual-layer -R and +R media may not play well for everyone everywhere.
    I presume you are not making 1000 or more copies? If you were replication could solve this.
    One other alternative would be to break-up the show into two parts and spread it across two DVD-5s.

  • What is the best way to import photos from iPhoto 9 into PSE 11?

    I just installed PSE 11 and I would like to move the pictures from my iPhoto 9 Library in to PSE 11.
    What is the best way to accomplish this as far as accuracy of data?
    Thank you!
    Len

    There is a direct option in Organizer which lets you import from iPhoto. This is under Import dropdown menu in left panel.
    If you are importing from iPhoto'09, your Tags, Albums Events, captions, star rating would also get imported apart from your media. This works differently for iPhoto'011 where you can get only the media to the Organizer,
    Just a couple of things to know:
    1. If in iPhoto preferences, you have chosen to create copies of your photos in iPhoto library and your library hence refers to the media store inside the library package, then on importing from iPhoto, Organizer would create copies of all those media under your pictures folder. That means, it would not corrupt your iPhoto package or modify it in any way.
    2. However, if in iPhoto, you are organizing by using references to original location on your Hard drive i.e. you are not creating copies of media in iPhoto library then on importing from iPhoto to Organizer, the Organizer would also use the same references and would not create copies of the media.
    Hope that helps!
    ~V

Maybe you are looking for