Trying to understand NSObjectController etc

OK - I've tried to read all of the Apple documents (as well as many other sources) about bindings and I seem to be able to use them with core data. However, this one has me beaten!
I have a class called 'ActiveDataSource' that has a KVC value of 'frequency'.
I have a class called 'RadioController' that contains several KVC references to instances of the ActiveDataSource, one of which is called 'leftSource'.
In my NIB, the 'File's Owner' has it's 'class' set to 'RadioController'.
I have an NSObjectController called 'DataSource' that has its 'content' set to 'File's Owner'.
I have an NSTextField with the 'Value' binding set to 'DataSource', the Controller Key set to 'leftSource' and the Model Key Path set to 'frequency' (it actually set this for itself - I entered nothing in the Controller Key field and 'leftSource.frequency' in the key path.
When I enter something into the text field, I can see my program reacting to the new value (both via debugger breakpoints and other messages that it sends to a 'log' textbox).
However, when the value within the 'ActiveDataSource' class is changed (again in a KVC manner as checked by the debugger with a breakpoint in the 'setFrequency' method) nothing is reflected on the display
Can someone tell me which incantation I have missed to get the bi-directional aspects of this working?
I realise that the binding part works one way, but I also understood that the NSObjectController add in the 'other' direction. Right?
Thank
Susan

I seem to be the only one interested in my question - but at least I have found the answer to this one. I've included it here for completeness and in case anyone actually does end up reading this!
The problem is that I was following the general pattern that is used in many of the books, tutorials and documents about using NIB's where they say to do the initialisation work in awakeFromNib or the documents windowControllerDidLoadNib because then the you know that the NIB is fully operational.
In my case, the NSObjectController had its content set to the 'File's Owner' which is the document instance. As part of the controllers attempt to establish the bindings, it tries to access the key value path which, in my case, resulted in a nil reference being returned and stopping the process in its tracks.
After the NIB has done all of this, it calls the windowControllerDidLoadNib method where I set up the sub-class instance.
When I entered a value on the screen, the controller was able to send the data to the class/sub-class 'model' correctly, but there was nothing set up for the controller to observe when the model value changed.
In all of the examples I've seen, the model instance has been represented by an object within the NIB itself and so the NIB will be creating/restoring the instance as it needs it. Therefore the binding setup part works. Because I have been using the 'File's Owner', the instance is created outside of the NIB and so the NIB must simply assume that everything is initialised.
In this case, I simply moved the sub-class creation and initialisation to the document's init method and all is well. (However, in the real app I'm writing, this may not be so easy as the reason there is a sub-class at all is because there are several different variants based on what else is happening in the 'real world').
Hope this helps someone.
Susan

Similar Messages

  • Trying to understand Android OS updates delays

    This is not another hate mail, it´s more about trying to understand the facts and motives regarding the OS updates (or lack of).
    Hopefully this material will arrive at someone from Sony with enough power to do something about it.
    Ever since I can remember, Sony has been THE brand for electronics. I can´t remember a TV or VCR in my house that it wasn´t Sony, and they lasted for LOTS of years.
    When a couple years ago I finally had the money (and the need) for a Smartphone, i chose the X10 Mini, which is a great little phone from a great brand, but it´s stuck at Android 2.1... which makes it a crippled android nowadays...
    It really bothered me the lack of OS updates, so I chose to buy a Galaxy Nexus, but it´s really expensive in my country. So my second option was a Galaxy Ace 2, but they haven´t arrived to my country yet, so I went with my third option: Xperia Sola, knowing beforehand that it´s a great phone, a great brand, but I might get slow OS updates.
    I bought it about 10 days ago when I saw they were starting to roll out the updates.
    10 days later I still don´t have my update. And not only that, but I don´t see much light at the end of the tunnel...
    I found a thread with the SI numbers that were updated, and there were a bunch on Oct 1, another bunch on Oct 4, and one code on Oct 8, and no other update since...
    I also read that those who did get the update, were having bugs with the OS, and also found threads from other Xperia models, whose updates began rolling 3 months ago, and there is still people who hasn´t gotten the update...
    As a customer, and a owner/CEO of a small company, I have a really hard time understanding how a HUGE company like Sony can be making such mistakes...
    I have been thinking objective reasons, and I can only think of one. I know it´s a wild guess, but I´m starting to think that our salvation might be the very thing that means our condemnation: CYANOGENMOD!!!
    Think about it: Why would Sony spend more money hiring twice as much programmers, when they can make only one update per phone, and sit down and see how CM releases begin to appear, for all tastes and needs. And... IT´s FREE!!!
    Also, if there is a software related problem (way more likely than a hardware problem), then the CM developers take the fall, instead of Sony. And I´m beginning to see custom OS installers that are more user friendly, so it might be something that they take in accout when neglecting OS updates.
    If that´s the line Sony is following, it´s a very risky move and it won´t work. Sony Mobile will crash and burn, but it´s still a better business plan that "let´s get lazy and make ULTRA slow updates so we don´t spend a lot of money programming".
    If you can´t afford more programmers, stop including so much bells and whistles and make your OS near vanilla. Include a couple of Xperia menus, a custom theme and voila!
    The main reason I wanted the Galaxy Nexus is Vanilla OS, which means inmediate OS updates. Sony on the other hand, takes a year or two to release it after its launch. If they release it at all...
    Another though...  why not stop making that many different phones! Really! There are like 5 Xperia models i can´t tell one from the other... even with specs side by side!
    You are trying to make too many phones and you are failing with all of them! (Software and software updates are also part of the phone, one of the most importants...)
    I know hiring programmers is expensive, but you are sacrificing one of the most expensive values for a company EVER: Customer credibility! Which as you know better than me, takes years to create.
    If Apple had problems with carriers and code aprooving and stuff, they might get away with it, becouse they alone have all the devices. If iOS 6 is delayed a few months, it´s delayed for everyone, and besides Apple fanboys rarely complain about Mac products, but Android is a more independent and educated market.
    I´m not saying that Apple users are ignorant, not at all, but I´m pretty sure most iPhone owners don´t even know what processor or how much RAM their phone has. They just "swallow" the Apple Way of Life. (it´s a good phone becouse Apple says so).
    The Android user on the other side, because of the fragmentation of the market, has many brands and models to choose from. An Android user about to buy a new phone will most likely go online looking for different models, specs, reviews in webs and forums...etc.
    You can´t say "I don´t know how HTC and other companies get their updates so soon, but we take a lot more becouse Google and the Operators must aproove the code.", because there are many other brands that have exactly the same difficulties or more, since they are smaller, and we can SEE online that they are indeed delivering solid and relativly fast updates.
    Did we miss something? Does HTC use Witchcraft to get their code aprooved?
    My underlying point is this: You are getting lazy... VERY lazy with software programming for your phones, and WE KNOW IT!
    It´s not the "difficulties" you claim, becouse every brand has those difficulties.
    This isn´t 1999 you know. We are in the information age. If you lie to us and tell us that your phones have the latest OS, I can go online and see that you don´t (Hello!!!). If I see that the company lies to it´s customers, I will stop buying their products. If I´m so dissapointed with how Sony handles OS updates and their customers queries about it, then I want for the first time ever to sell my Cell Phone becouse I´m not happy with it, or the brand behind it.
    We also live in the "Here and now" age. You can´t expect your customers to read about new Android releases on news and blogs, and wait YEARS with arms crossed waiting for their update... The world doesn´t work like that. Not anymore at least...
    It´s not a matter of how many recources you have, it´s about how you use and balance them. GIVE MORE IMPORTANCE TO SOFTWARE UPDATES! IT´S WAY MORE IMPORTANT THAT YOU THINK! LISTEN TO YOUR CUSTOMERS!!!
    You guys are Sony are smart and design great products, but you are not GOD! You are not our wife, no one has sworn alliagence to you.
    If you stop giving us good products and start lying to us, we hate you and stop giving you our money. Simple as that.
    My sola is beatiful, I love the design, the screen, the hardware... but it hasn´t been updated yet to 4.0, not to mention 4.1, which REALLY is the latest version... so stop advertising that your phones have the latest Android OS, unless you want angry customers switching to other companies, which you are getting.
    I also read some stories that Androind 4.0 was announced for the Xperia PLAY, and then it was called off... Do you have any idea how pissed I would be and ripped off I would be if I bought my phone based in that information and then you say it won´t be available?
    Well, actually right now my possition is worse, since you SAY you will update my phone, but you don´t say when, and I read online about people still not getting their updates months after the rollout started, so I´m in the limbo right now...
    As a company, one of the worse things you can do is calling your customers stupid, and when I see the answers you give in this forum, then I feel insulted. I feel like they are talking to an idiot or ignorant person with the so called "diplomatic" answers, which are basicly empty excuses for not doing your job right.
    You gave us the frikking CDs, DVDs and Blu-Rays!!! Don´t tell us you can´t tweak an already built OS in a year!
    I really hope you change their OS update policies really soon, before you lose the already small cellphone market share you have, or at least change your P.R. and C.M. policies towards a more open one.
    We all are humans and make mistakes, but we customers really appreciate honesty and truth.
    Have an open conversation with your customers! Don´t lie about your shortcomings! Accept then and ask the community to help you solve them, ask them what they biggest problems are, what features are most important to them, how often do they expect updates... LISTEN TO THEM!!
    "Succes is a meneace. It tricks smart people into thinking they can´t lose."
    Ps: Nothing personal with the mods from this forum, I´m not killing the messenger, I know that you can ONLY give the info you are allowed to give, and even if you wanted, you probably don´t know the answers yourself, since you work in the Communications department, not Developement or anything technical, and if you can't give any given info, then they probably won´t give it to you either... My message is to the company as a whole. I just hope you will be a good messenger and give this to whoever needs to read it.

    My bad, it´s closer to 40 the number of phones released hehe
    I know it´s all about money, and I know Sony is obligated to neglect users who haven´t given them money after an x ammount of time. However, it´s not a matter of making the phones obsolete earlier, so the users want to buy a new phone faster and therefore getting more money.
    A person will buy a new phone when he/she has the money to do so and wants to do so.
    It´s not a matter of WHEN. It´s a matter of WHAT.
    The question is not "When will that user buy a new phone?", but rather "When that user buys a new phone, whenever that is, what phone will it be?"
    I have a love/hate relationship with Apple. I would never use a iPhone. I would love having any Mac, if someone gives it to me, but I would never spend my harn earned dollars on such an overpriced piece of hardware over general principals.
    However, i do recognice that Steve Jobs was a business genius. Weather you like or love his ideas and methods, he turned a garage project into the biggest company in the world, with a market value higher than Exxon with 1/3 of it´s assets.
    Apple is a money making machine, and that is where the "hate" part of my relationship comes from.
    However, it surprised me a lot to see that they released iOS 6 for the iPhone 3GS, released in 2008!
    That get´s you thinking, that inside all that "SELL NOW" culture Apple is, they also support their older devices that people bought years ago but can't buy a new phone now. However, when they can do it, it will surely be another iPhone. Because they FEEL that the company listens and cares for them.
    Also if you jump from iOS 6 on the 3 GS to a brand new iPhone 5, the transition will be virtually non-existant, except for Siri and a couple of features.
    However jumping from Android 1.5 or 2.1 to Jelly Bean, might not be so easy on some users, making them more likely to give iPhone a shot.
    Since they have to adapt to another phone anyway, they might as well try the apple...
    And for old users, it gives people a sense of continuity and care about the user. Otherwise we feel like being kicked out of a restaurant right after we payed the bill.

  • Trying to understand Provides Dependency type

    I am trying to understand the Provides dependency type. I have
    reviewed the online documentation, but I'm not quite there yet.
    I have a SQL script, with a create table statement, to create
    the CUST table. When I parse the SQL script, I think I should
    get a Provides dependency with a subtype of Created. However, I
    don't get any Provides dependency types.
    Am I missing a step? Do I need to create something else? Or
    have I completely missed the boat?
    Thanks!
    Vini

    Vandana,
    What you see is the way the Dependency Manager is designed to
    work. When you parse a file or object it looks for things it
    provides and things it uses.
    In the case of a ddl script with a create table statement the
    dependency tables will populated with provides dependencies for
    the table and the columns. If this is all you have parsed, and
    you use the dependency manager to show the dependencies for ddl
    file you will see no dependencies in the right hand side results
    pane. This is correct. In the left hand pane of the Dependency
    manager you expand the ddl file node you will see the table(s)
    created in the file. These are the provide dependencies.
    (As an aside, if you parse an Oracle Form and select the form in
    the Dependency manager left pane, you can expand the node and see
    all the blocks and items etc in the form. This is because the
    form "provides" all these "things" that maybe subclassed into
    other forms)
    If you subsequently parse other objects/files that use the table
    then you will see the dependencies between them in the right hand
    pane.
    The slightly confusing part is if you have modelled the table in
    Designer as well as stored the ddl that creates the table the
    dependency manager doesn't show dependencies between them. The
    product just treats these as two providers of the same table. So
    this means when look at, say a form that uses the table, the
    dependency manager will show that the for uses both file and
    modelled table.
    I hope this makes things clearer
    Regards
    mark

  • Trying to understand how pics are stored

    I'm new to Mac (iMac Core i5 27") and trying to understand how pictures are stored. I've searched and found some posts that are relevant, but I really wanted to try and confirm a couple of things that still aren't clear to me.
    First question is: Are the pictures in Events, Photos and Albums all the same photos?
    Second question: If I import pictures from my external drive into iPhoto, are they stored on the iMac hard drive in the Pictures folder, and just viewed in iPhoto?
    Thanks!

    First question is: Are the pictures in Events, Photos and Albums all the same photos?
    Yes. Iphoto works on a Library bsis. Every photo is in the Library. Events and Photos are both views of the Library. Albums reference photos in the Library. A photo can be in many Albums and use no extra disk space.
    If I import pictures from my external drive into iPhoto, are they stored on the iMac hard drive in the Pictures folder, and just viewed in iPhoto?
    Yes, by default. There are other options - for instance, iPhoto integrates with almost every app on your Mac, you can store the Library on an external etc etc. If you tell us what you'd like to achieve we may be able to help you.
    Regards
    TD

  • Trying to Understand Color Management

    The title should have read, "Trying to Understand Color Management: ProPhoto RGB vs, Adobe RGB (1998) my monitor, a printer and everything in between." Actually I could not come up with a title short enough to describe my question and even this one is not too good. Here goes: The more I read about Color Management the more I understand but also the more I get confused so I thouht the best way for me to understnand is perhaps for me to ask the question my way for my situation.
    I do not own an expensve monitor, I'd say middle of the road. It is not calibrated by hardware or any sophisticated method. I use a simple software and that's it. As to my printer it isn't even a proper Photo filter. My editing of photos is mainly for myself--people either view my photos on the net or on my monitor. At times I print photos on my printer and at times I print them at a Print Shop. My philosophy is this. I am aware that what I see on my monitor may not look the same on someone else's monitor, and though I would definitely like if it it were possible, it doesn't bother me that much. What I do care about is for my photos to come close enough to what I want them to be on print. In other words when the time comes for me to get the best colors possible from a print. Note here that I am not even that concerned with color accuracy (My monitor colors equalling print colors since I know I would need a much better monitor and a calibrated one to do so--accurately compare) but more rather concerned with color detail. What concerns me, is come that day when I do need to make a good print (or afford a good monitor/printer) then I have as much to work with as possible. This leads me to think that therefore working with ProPhoto RGB is the best method to work with and then scale down according to needs (scale down for web viewing for example). So I thought was the solution, but elsewhere I read that using ProPhoto RGB with a non-pro monitor like mine may actually works against me, hence me getting confused, not understanding why this would be so and me coming here. My goal, my objective is this: Should I one day want to print large images to present to a gallery or create a book of my own then I want my photos at that point in time to be the best they can be--the present doesn't worry me much .Do I make any sense?
    BTW if it matters any I have CS6.

    To all of you thanks.                              First off yes, I now have begun shooting in RAW. As to my future being secure because of me doing so let me just say that once I work on a photo I don't like the idea of going back to the original since hours may have been spent working on it and once having done so the original raw is deleted--a tiff or psd remains. As to, "You 're using way too much club for your hole right now."  I loved reading this sentence :-) You wanna elaborate? As to the rest, monitor/printer. Here's the story: I move aroud alot, and I mean a lot in other words I may be here for 6 months and then move and 6 months later move again. What this means is that a printer does not follow me, at times even my monitor will not follow me so no printer calbration is ever taken into consideration but yes I have used software monitor calibration. Having said this I must admit that time and again I have not seen any really noticeale difference (yes i have but only ever so slight) after calibrating a monitor (As mentioned my monitors, because of my moving are usually middle of the road and limited one thing I know is that 32bits per pixel is a good thing).  As to, "At this point ....you.....really don't understand what you are doing." You are correct--absolutely-- that is why I mentioned me doing a lot of reading etc. etc. Thanks for you link btw.
    Among the things I am reading are, "Color Confidence  Digital Photogs Guide to Color Management", "Color Management for Photographers -Hands on Techniques for Photoshop Users", "Mastering Digital Printing - Digital Process and Print Series" and "Real World Color Management - Industrial Strength Production Techniques" And just to show you how deep my ignorance still is, What did you mean by 'non-profiled display' or better still how does one profile a display?

  • Trying to understand StreamReader (BinaryReader) BaseStream Position

    This is my first attempt to use BinaryReader in VB 2012 (having previously done so in VBA).
    I am reading an extremely large text (TSV) file which I ultimately intend to divide into many more manageable-sized files that (in the future) I want to be able to randomly access - hence my need to understand the "Position" method.
    My VB code for reading the TSV file is as follows:
    If (File.Exists(TSVFile)) Then
    Using reader As BinaryReader = New BinaryReader(File.Open(TSVFile, FileMode.Open))
    While reader.PeekChar <> -1
    '~~> TEMPORARY MSGBOX TO VIEW STREAMREADER POSITION
    MsgBox(reader.BaseStream.Position)
    '~~> TEMPORARY MSGBOX TO VIEW STREAMREADER POSITION
    '~~> Set up 0 to 4095 Char array to receive Reader buffer
    Dim chrBuffer(4095) As Char
    '~~> Assume it will be the final, probably incomplete, read
    CompleteBufferRead = False
    '>> Complete the Read, return the no. of Chars read - was it complete?
    If reader.Read(chrBuffer, 0, 4096) = 4096 Then CompleteBufferRead = True
    ' BLAH
    ' BLAH
    ' BLAH
    End While
    End Using
    Else
    Exit Sub
    End If
    As you can see, I am using reader.read(Char(),Int32,Int32) to read 4096 characters at a time into a 0-to-4095 Char array - and this code apparently works fine.
    HOWEVER, when I attempted to follow progress by examining the result of "reader.BaseStream.Position" I got the following surprising results: 0; 4098; 8194; 12290; 16386; etc.  The first Position is 0 (i.e. the beginning of the file).  However,
    having just read the first 4096 characters, the second Position is 4098.  The subsequent Position results are all increments of 4096 (as you might reasonably expect) except the final Position which reflects the fact that the very last data is not on the
    4096 boundary.
    What I am trying to understand is why the very first read of 4096 Characters offsets the StreamReader's Position forward an extra two Characters (when all subsequent reads of 4096 Characters increments Position by 4096)?
    Solving this conundrum will help me in devising my future random-access strategy.
    As ever any and all help and assistance will be very much appreciated.
    Paul J

    DON'T USE CHAR with binary data. A CHAR is really two bytes with a private property to indicate that the character is one or two bytes to handle Unicode characters. Use Byte array instead. it is not necessary to use peek instead.  See code below
    Imports System.IO
    Module Module1
    Sub Main()
    Dim byteBuffer(4096) As Byte
    Dim bytesAvail As Integer = 0
    Using reader As BinaryReader = New BinaryReader(File.Open(TSVFile, FileMode.Open))
    Do
    bytesAvail = reader.Read(byteBuffer, 0, 4096)
    If bytesAvail > 0 Then
    End If
    Loop While bytesAvail > 0
    End Using
    End Sub
    End Module
    jdweng

  • Trying to understand HD speed ...

    Hi,
    I am trying to understand what is the real life speed of a hard drive.  I understand that a specific hard drive is limited by it's own specifications (RPM and buffer), by the interface it connects with (SATA 1, 2 or 3), by the enclosure's interface (USB 2 or 3, etc ...), by the computer's interface (USB 2 or 3, etc ...) and also probably by the cable it connects with.  
    Sellers publications and specifications seems so complicated for the newbee.  How can even a diligent customer understand and find it's way in this sea of often contradicting informations ?
    I bought a Samsung 1TB HN-M101MBB 2.5" drive.  You can read the specs here.  With the speed specifications in mind, what should be the real life speed I can max out from this wired drive if all connections, interfaces and cables are «the best in the west» ? 
    Media to Buffer is slow (18MBps) and Buffer to Host is 300MBps.  How can I estimate the maximum speed of this drive just by reading the specs ?  I know I can test the drive's speed with some software like Disk Speed Test and Aja, but since my own configuration is probably limiting the drives output,  I wanted to read what the forum's wisdom would estimate. 
    Thanks in advance.

    You won't really be able to figure out real transfer rates from mfgrs. specs. You need to look at sites that test drives like Tom's Hardware report or AnandTech. Google will be a major help.
    The closest you can come to any speed estimation for an external is the speed of the port. If a Firewire port has a transfer rating of 800 Mb/s or 100 MB//s, then data goes no faster than that but more likely will be slower.

  • I am trying to understand if cloud supports SOA components deployment , if so how can we achieve it.

    Hi All
    I am trying to understand if cloud support SOA components deployment like BPEL, Mediator etc.., It will be great help if someone can confirm this

    Photoshop does not keep profiles anywhere.
    Profiles are managed by the OS.
    Photoshop shows the available profiles in it's UI, and gets the list of available profiles from the OS.
    What does Hot Press Birght Paper mean?
    That the profile applies to a particular paper, probably called "hot press bright" paper.
    Yes, you will have a profile for each printer and type of paper -- you have to in order to describe how the image will appear on each printer and type of paper.

  • Hello, World - trying to understand the steps

    Hello, Experts!
    I am pretty new to Flash Development, so I am trying to understand how to implement the following steps using Flash environment
    http://pdfdevjunkie.host.adobe.com/00_helloWorld.shtml         
    Step 1: Create the top level object. Use a "Module" rather than an "Application" and implement the "acrobat.collection.INavigator" interface. The INavigator interface enables the initial hand shake with the Acrobat ActionScript API. Its only member is the set host function, which your application implements. During the initialize cycle, the Acrobat ActionScript API invokes your set host function. Your set host function then initializes itself, can add event listeners, and performs other setup tasks.Your code might look something like this.
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" implements="acrobat.collection.INavigator" height="100%" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
    Step 2: Create your user interface elements. In this example, I'm using a "DataGrid" which is overkill for a simple list but I'm going to expand on this example in the future. Also notice that I'm using "fileName" in the dataField. The "fileName" is a property of an item in the PDF Portfolio "items" collection. Later when we set the dataProvider of the DataGrid, the grid will fill with the fileNames of the files in the Portfolio.
    <mx:DataGrid id="itemList" initialize="onInitialize()" width="350" rowCount="12"> <mx:columns> <mx:DataGridColumn dataField="fileName" headerText="Name"/> </mx:columns> </mx:DataGrid>
    Step 3: Respond to the "initialize" event during the creation of your interface components. This is important because there is no coordination of the Flash Player's initialization of your UI components and the set host(), so these two important milestone events in your Navigator's startup phase could occur in either order. The gist of a good way to handler this race condition is to have both your INavigator.set host() implementation and your initialize() or creationComplete() handler both funnel into a common function that starts interacting with the collection only after you have a non-null host and an initialized UI. You'll see in the code samples below and in step 4, both events funnel into the "startEverything()" function. I'll duscuss that function in the 5th step.
                   private function onInitialize():void { _listInitialized = true; startEverything(); }

    Hello, Experts!
    I am pretty new to Flash Development, so I am trying to understand how to implement the following steps using Flash environment
    http://pdfdevjunkie.host.adobe.com/00_helloWorld.shtml         
    Step 1: Create the top level object. Use a "Module" rather than an "Application" and implement the "acrobat.collection.INavigator" interface. The INavigator interface enables the initial hand shake with the Acrobat ActionScript API. Its only member is the set host function, which your application implements. During the initialize cycle, the Acrobat ActionScript API invokes your set host function. Your set host function then initializes itself, can add event listeners, and performs other setup tasks.Your code might look something like this.
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" implements="acrobat.collection.INavigator" height="100%" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
    Step 2: Create your user interface elements. In this example, I'm using a "DataGrid" which is overkill for a simple list but I'm going to expand on this example in the future. Also notice that I'm using "fileName" in the dataField. The "fileName" is a property of an item in the PDF Portfolio "items" collection. Later when we set the dataProvider of the DataGrid, the grid will fill with the fileNames of the files in the Portfolio.
    <mx:DataGrid id="itemList" initialize="onInitialize()" width="350" rowCount="12"> <mx:columns> <mx:DataGridColumn dataField="fileName" headerText="Name"/> </mx:columns> </mx:DataGrid>
    Step 3: Respond to the "initialize" event during the creation of your interface components. This is important because there is no coordination of the Flash Player's initialization of your UI components and the set host(), so these two important milestone events in your Navigator's startup phase could occur in either order. The gist of a good way to handler this race condition is to have both your INavigator.set host() implementation and your initialize() or creationComplete() handler both funnel into a common function that starts interacting with the collection only after you have a non-null host and an initialized UI. You'll see in the code samples below and in step 4, both events funnel into the "startEverything()" function. I'll duscuss that function in the 5th step.
                   private function onInitialize():void { _listInitialized = true; startEverything(); }

  • I cannot send MMS from an iphone 5 - some people it works others do not receive it.   MMS is turned on and i have tried to reset phone etc - still same problem.

    I cannot send MMS from an iphone 5 - some people it works others do not receive it.   MMS is turned on and i have tried to reset phone etc - still same problem.

    Are the messages successfully sent?
    If so, what happens to a message after it is successfully sent has nothing to do with the cell phone that sent the message.

  • I have a new Macbook Pro - trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between the two.  I follow the directions but the two computers never "discover" each other.  WiFi connect works but 70 hours is a rough deal.

    I have a new Macbook Pro.  Trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between them.
    I follow the directions but the two computers never "discover" each other - using a WiFi connection works but 70 hours is a rough deal.
    (Mac OS 10.8.2 on both computers)

    Are you trying target disk mode?
    http://support.apple.com/kb/PH10725
    Ciao

  • I have a CC Photography License and tried loading the new Lightroom cc but it will not open (only flashes the welcome screen for a split second) then goes blank.  I tried uninstalling it, rebooting, etc. several times and it will not work on my Mac with Y

    I have a CC Photography License and tried loading the new Lightroom cc but it will not open (only flashes the welcome screen for a split second) then goes blank.  I tried uninstalling it, rebooting, etc. several times and it will not work on my Mac with Yosemite.  Please help!

    Check out this thread: Downloaded Lightroom CC but only get a quick flash of the startup screen then nothing, Lightroom 5 still working.

  • Trying to understand OIM - Please help

    Hello All,
    I am pretty new to OIM, just trying to understand how OIM works. For the past 4 years I was in Sun IdM and planning to switch over to OIM.
    I read some documentation, I think OIM will perform basic provisioning and it contains out of box connectors to do basic provisoning. I have some questions can anybody please help
    - Sun IdM uses Express language to develop custom workflows or forms, in OIM to develop workflows which language did you use, is it Java or any other language?
    - If I want to provision users on AS/400, HP Open VMS or AIX systems, how can I do that I don't see any out of box connectors for these resources, so in order to integrate these resources do we need to write our own custom connectors?
    - If the out of box connector does not support a specific function on a resource what are the options do we have? for example if the AD connector does not support to delete the exchange mailbox, how your going to perform this in OIM? Do we need to write a Java code for this?
    - How much Java coding is necessary in OIM?
    - Is OIM supports role based provisioning?
    Please share any information.
    Thanks in advance.

    Sun IdM uses Express language to develop custom workflows or forms, in OIM to develop workflows which language did you use, is it Java or any other language?
    - JAVA
    If I want to provision users on AS/400, HP Open VMS or AIX systems, how can I do that I don't see any out of box connectors for these resources, so in order to integrate these resources do we need to write our own custom connectors?
    - If OOTB connectors are not available then you'll have build you own connector as per Target Resource.
    If the out of box connector does not support a specific function on a resource what are the options do we have?
    - You'll have customize their connector as per your requirements or write your own
    How much Java coding is necessary in OIM?
    - We can't calculate how much java. It's totally depends on requirements how much code you'll ahve to write. But everything will be done using Java only.
    - Is OIM supports role based provisioning?
    Here Group represent Role. At a small scale it supports. But for large scale you'll have to use Oracle Role Manager as you do in Sun Role Manager.

  • How do I transfer my checked songs from one computer to another - tried exporting library playlist etc but no luck! Please help! I have 26,000 songs - 17,000 are selected and I can't run down the list on my new computer and re-check 17,000 songs! Thanks!

    How do I transfer my checked songs from one computer to another - tried exporting library playlist etc but no luck! Please help! I have 26,000 songs - 17,000 are selected and I can't run down the list on my new computer and re-check 17,000 songs! Thanks!

    Make a smart playlist of your whole library but only checked songs - #4 on  http://support.apple.com/kb/ht1801
    Highlight all files in that playlist, then drag to the other drive.  This isn't preserving any playlists or whatever, just copying files from one drive to another.
    You might want to delete the smart playlist this once you are done because it will probably gobble up resources with that many files.

  • Trying to understand, being prompted the file compression rules on saving, or not

    Hello,
    I'm trying to understand something, could I ask for your help, please ?
    After working on a jpg file, when I want to save it, still as jpg, with my Photoshop CS5,
    - sometimes photoshop will just save the picture, and it's done
    - sometimes photoshop will show me the compression dialog, "JPEG Options", in which I can choose the compression ratio, the format options (baseline, baseline optimized, progressive), and have an estimation of the total file size
    While not being prompted any dialog is simpler, and I'll then simply assume Photoshop decides to retain the current image's compression and format rules, I must say I like to be in control, and I'd like to know under what form the file is being saved without having to resort to the much more complex "Save For Web" menu.
    Please, would you know WHAT "triggers" the appearance of the JPEG Options when we close/save a jpeg file, in photoshop ? What makes this menu not to appear, what makes it appear ?
    If there are trivial file operations/changes/filters that necessarily trigger its appearance when we want to save, something like that ? I've tried a variety of these, but I still can't figure it out, sometimes it shows in the end, and sometimes it doesn't.
    Thank you very much if you can help me
    Kind regards,
    Oliver

    @ c.pfaffenbichler
    These are images from various sources, not just one.
    I'm deliberately excluding Save For Web, this completely re-processes everything.
    My purpose, precisely, is to know when photoshop takes the decision to retain the image's "rules", and when photoshop decides to pose us the question, how do we want it saved.
    Simply taking a jpeg image, doing stuff on it, and hitting control-w to close the window, and seeing if it will be an
    - «OK, sure, do you want to save ? You clicked OK to confirm you wanted the changes saved ? Good, now it's closed» or a
    - «please sir, how would you like your image saved, tell me the compression ratio and the format options, thank you»

Maybe you are looking for