Indicator for number of items in an array....

Hi,
Does anyone know how to display series of dots in possibly a UILabel field - the number of dots represent - let's say - the number of items in an NSArray?
Sam

Shnaps wrote:
If I am looking for a list of methods that return autoreleased (or non-autoreleased) objects, where would I look? I worry about leaks!
That's a good thing to worry about, Sam.. Tells us you have the correct mixture of paranoia and obsessive compulsive behavior to be a great programmer.
You don't need a list if you remember this:
You take ownership of an object if you create it using a method whose name begins with “alloc” or “new” or contains “copy” (for example, alloc, newObject, or mutableCopy), or if you send it a retain message. You are responsible for relinquishing ownership of objects you own using release or autorelease. Any other time you receive an object, you must not release it.
Class methods other than alloc, etc. that return an instance of the class ("convenience" methods) and instance methods like stringByReplacingOccurrencesOfString:withString: return objects you didn't create. You don't own those objects unless you retain them. When you don't own an object, you must assume that the owner will take care of releasing it. For practical purposes, you may assume these objects are autoreleased. They may stay around longer, but that's none of our business. We can't assume they'll exist after the end of the current event cycle.
Note also that when you use alloc to create an object (that you therefore own), you usually also init the object. Often you'll have a choice between creating your own object and obtaining one from a convenience method. In that case, the convenience method will have a name similar to the corresponding init. E.g.:
// NSString convenience methods:
+ (id)string // Returns an empty string
+ (id)stringWithString:(NSString *)aString // Returns a string created by copying the characters from another given string.
+ (id)stringWithFormat:(NSString *)format, ... // Returns a string created by using a given format ...
// inits for NSString objects we alloc'ed
- (id)init // Returns an initialized NSString object that contains no characters.
- (id)initWithString:(NSString *)aString // Returns an NSString object initialized by copying the characters from another given string.
- (id)initWithFormat:(NSString *)format ... // Returns an NSString object initialized by using a given format
Lastly, do you know what famous programmer wrote these words?:
The key to all of the above is under Memory Management Rules in the +Memory Management Programming Guide for Cocoa+. Once you grok that page, most of your memory management problems will be over.
Do you feel up to reviewing this page: [http://discussions.apple.com/message.jspa?messageID=10033394#10033394]?
- Ray

Similar Messages

  • To Set Goods Receipt Indicator For Particular Line Items In SRM

    Hi All,
      i am working on BBP_DOC_CHANGE_BADI in SRM. i am trying to set the goods receipt indicator for particular line items based upon certain conditions. The values are being set in the badi. But when the Purchase Order is created in the backend R/3 i coudn't able to find the goods receipt indiactor being set..
    i used this field to set the GR indicator
      GR_IND = 'X'.  " Goods Receipt Indicator
    Can anyone help me in this?
    helpfull answers will be rewarded....
    Thanks,
    Murali

    To Murali and Christophe,
    I have set the GR and GR non val indicator in CREATE_PO BADI but I face the following situation :
    problem -
    In case of multiple account assignment in the shopping cart, the R/3 transaction ME21N sets these flags. 
    The flag status determined as per EBP conditions is lost.
    I need to retain the flag status as per EBP conditions even in this multiple account assignment scenario.
    proposed solution -
    - CREATE PO badi is already implemented in EBP and customised logic for GR and GR non valflag is in place.
    - I create user exit in R/3 backend system in ME21N transaction 
    - I make RFC call in this user exit to EBP and check the table BBP_PDPSET for the shopping cart.
    This is how I get the flag status as per EBP conditions and copy the same to R/3 thereby overriding the multiple account assignment check of the R/3 system.
    issue - 
    When I tried to verify that I can check the BBP_PDPSET table from R/3, I found that this table is not having entries for all the records in  CRMD_ORDERADM_I table.
    For which shopping carts will the BBP_PDPSET table not  be populated ?
    thank you in advance,
    Bhakti.

  • Group Indicator for Tax Line Items

    Hi,
    Can anyone tell me where can we define Group Indicator for Tax Line Items
    Thanks & Regards

    1) If you are going to post your program code, you should only post the relevant part.
    2) You certainly should take the time and effort to remove commented out code
    3) This is not a training forum. Before posting questions you should search - not just this site, not just using a search engine, but your course notes. Run the program in debug, and put some effort into determining the error. Then ask a colleague to help. Only if all that fails, post here.
    Thread locked.

  • MIC control indicator for number of defective product

    Hi Gurus,
    My question is what indicator should be set if it's not supposed to be upper limit or lower limit as well as target value.
    The business is they will inspect bottles and the results recording should be number of defective bottles.
    Thank you so much!
    Eva

    Dear
    Use Catalogs and Selected Sets with Use T-code QS41 and QS51 and assign this in MIC and enable qualitative instead of Quantitative in characteristics attributes and when u make usage decision at that time use only selection sets code groups
    With Regards
    Pushpalas

  • Selection indicator for costing line items in production order

    Dear all,
    Do anyone know how to change field "AFVGD-SELKZ" of operation inside producion order? Any user-exit or standard program?
    As content of field "AFVGD-SELKZ" is carried from routing. But is it possible to change in production order level?
    Please kindly adivce.
    Cheers,
    Karen

    Karen,
    Let me give some more additional inputs, for an operation to become relevant for costing there are 2 options.
    1. As Ramanujam suggested - Control Key.
    2. In the Routing operation details you have a field to mark an <b>operation costing relevant this field takes priority over control key in defining the costing</b>. This field can be found in the operation details - General Data section of routing.
    <b>Some tricks,</b>
    What i mean here is a control key may not be relevant for costing, but still if this field is marked as costing relevant or percentage costs then this is the priority.
    if this field is marked not relevant for costing  and if the operation has a control key relevant for costing then in this case control key takes priority.
    In short what i meant is that you need to consider both "Control key" as well as the operation costing relevancy defination field.
    Hope this helps your understanding in resolving your problem....Reward your points if so,
    Regards,
    Prasobh

  • How to default Invoice indicator for these

    How to default Invoice indicator for these
    limit items
    Long Text
    Export/Import funcationlaity from the
    Purchase order.
    1.Craete a shopping cart with Limit
    item
    2.Give the "value Limit" to 1 Penny(0.01)
    3.Order the Shopping
    art
    4.The shopping cart is approved and orderd
    5.Navigate to the "Related
    document" tab from the Shopping cart screen
    6.Click on Purchase order
    Number
    7.Click on "Export"Button from the PO Screen
    8.Save the Exported
    file in to Local drive
    9.Now Edit the file which is saved((Add few more line
    items)
    10.Now come to PO screen amd click on Edit button
    11. Click on
    "Import" Button from the PO screen
    12.Click on Browse from the Pop up window
    and click on Upload button.
    13.Now check the Imported items from the "Item
    Overview"section-
    Bottom
    Line is:Limit items are getting created in the System using the
    upload file
    but it does not update the GR based Invoice indicator flag
    for all the items
    uploaded.due to which it errors out.

    Hi,
    I have created a shopping cart and order it,
    I will open the SC and navigate to the Related tab and click on PO document number.
    Now click on Export button(It will export to ur Local desktop) on Po screen
    Now update Exported file(add few more Limit items)
    Click Edit button from PO screen.
    Import button will be enabled.
    Click on Import button to upload the File.
    Verify the limit items are added to the item overview section.
    Now all the Limit items are added but system gives error messages.
    Error message below:
    "Check confirmation-Based Invoice Verification for services and   Limits."
    This is the error message for all the Line items, so We need to default this flag.

  • Autoclearing for GL line items

    Hi All,
    I am trying to clear line items from the GL accounts which are having different Profit center & different Material with same assignment field for that i have changed the rule for Document clearing, i have just mentioned field  ZUONR for clearing. but whenever i am going to clear the line items in GL for different Profit center & Material with same assignment field its is going to be cleared but the program is posting additional Document to clear the same.
    Example- Doc 1
    Itm  PK   BusA             Profit C     Acct G/L   acct short text             Amount    Amt in LC        Material Assignment    T                                                                               
    1  40    FXWS            DL0001   16210028   Fx on hand  THB         500.00        515.00        THBCNPAX 1234          1234           
      2  50    FXWS            DL0001   16210228   Fx in transit  THB        500.00-       515.00-       THBCNPAX 1234          1234                                                                               
    Example- Doc 2
                                                                                    1 40    FXWS            WS0487   16210228   Fx in transit  THB        500.00          515.00  THBCNSIX 1234              1234            
      2 50    FXWS            WS0487   16210028   Fx on hand  THB         500.00-         515.00- THBCNSIX 1234             1234  
    Above documents are having same assignment but different PC and Material which  i am going to be cleared but the auto clearing program posts extra line items for clearing.
    result in FBRA -
    Type     DocNo     PK     BusA     Profit C     Account        Amt DC     Amt in LC        Material             Text              Assignment
    AB     101572187     40     FXWS     DL0001     16210228    500      515                                                        1015721872011
    AB     101572187     50     FXWS     WS0487     16210228   -500     -515                                                        1015721872011
    IB     5900114725     50     FXWS     DL0001     16210228   -500     -515                 THBCNPADS      1234                        1234
    IB     5900114726     40     FXWS     WS0487     16210228    500      515             THBCNSIBS              1234                        1234
    Can anyone tell me why the program is posting additional docu when i want to clear docu. from one Profit center with another........

    The program is behaving as intended.  Any entry, once posted will not be edited in SAP.  So. if you try to clear the amounts from one PC against the other, a separate document is created with credit and debit line items to give that effect while setting the clearing indicator for the said items.  This is done to maintain the trail.
    Ravi.

  • Exchange 2010 SP2 RU2 - Indexing backlog reached a critical limit of 48 hours or the number of items in the retry queue is greater than 10000 for one or more databases

    We have been getting intermittent SCOM alarms for our Exchange 2010 MBX server citing "Indexing backlog reached a critical limit of 48 hours or the number of items in the retry queue is greater than 10000 for one or more databases"
    I see events in EventViewer that SCOM is triggering on, but not whats generating the events or how else to test for them.
        get-eventlog -computername SERVERNAME -logname "Application" -after "03/14/2013" | ?{$_.eventid -eq "5604"} | select MachineName,EventID,EntryType,Message | ft -autosize
    One MS Forum post online says it is a bug in RU4, unclear if it may also be a bug in RU2 (our installed version).
        http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/9dcb3011-9327-4935-9479-62b38a6ddd87
        "I was looking for the same error and found this.. it basically says that this is a bug in RU4 and RU4-v2...and it needs to be removed."
    tests using troubleshooting scripts find no issues with search indexer,
        [PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>.\Troubleshoot-CI.ps1
        Get-EventLog : No matches found
        At C:\Program Files\Microsoft\Exchange Server\V14\scripts\CITSLibrary.ps1:622 char:40
        + $msftesqlCrashes = get-eventlog <<<< -computername $Server -after $StartTime -logname "Application" -source $msftesqlServiceName | where {$_.eventId
        -eq $msftesqlCrashEventId}
            + CategoryInfo : ObjectNotFound: (:) [Get-EventLog], ArgumentException
            + FullyQualifiedErrorId : GetEventLogNoEntriesFound,Microsoft.PowerShell.Commands.GetEventLogCommand
        Name IsDeadLocked CatalogStatusArray
        SERVERNAME False {DATABASENAME\SERVERNAME, DATABASENAME\S...
        [PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>
    and tests against searches on each DB themselves show no issues and respond typically within 3 seconds.
        [PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>Test-ExchangeSearch | ft Server, Database, ServerGuid, ResultFound, SearchTimeInSeconds, Error -AutoSize
        Server Database ServerGuid ResultFound SearchTimeInSeconds Error
        SERVERNAME DATABASENAME b16e3461-257c-40dd-a9ad-99a5f41a927e True 2.937
    I also tried to check the Performance Viewer for the MSExchange Search Indexer and MXExchange Search Indices but am unsure which of the many metrics would indicate this issue.
    We have had no reports of search issues from our users and have been unable to duplicate any impairment in our testing.
    Does anyone else have any suggestions for tests to check or steps to take on this alert? Is it simply a false alarm or a timeout of other sorts during testing? We have 80 DAGs on this server (as well as all our servers, some of which have also reported the
    same alert) and the Test-ExchangeSearch command times out before completely testing all DAGs.

    Hi IAMChrisL,
    Any updates?
    Frank Wang
    TechNet Community Support

  • No goods receipt possible for purchase order Number and Item number.

    Hello experts,
    When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
    No goods receipt possible for purchase order <PO number> <line item number>.
    But the GR is getting created manually using Transaction MIGO for the same PO number.
    I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
    In my case 
    1.deletion indicator is not set for the Purchase order line items
    2.And Movement type is 101
    3.And gm_code is 01.
    Could anyone please suggest me, what else could be the reason for this error?

    Here is the code what i have written.
      f_gmvt_header-pstng_date = sy-datum.
      f_gmvt_header-doc_date   = sy-datum.
      f_gmvt_header-pr_uname   = sy-uname.
      f_gmvt_header-ref_doc_no = p_ebeln.
      f_goodsmvt_code_tmp        = '01'.
    * Looping the PO details.
      CLEAR: gf_item,f_gmvt_item.
      LOOP AT gt_item INTO gf_item.
    * fill the bapi item structure details
        f_gmvt_item-material   = gf_item-material.
        f_gmvt_item-plant      = gf_sbms-werks.
        f_gmvt_item-stge_loc   = '0001'.
        f_gmvt_item-move_type  = '101'.
        f_gmvt_item-po_number  = p_ebeln.
        f_gmvt_item-po_item    = gf_item-po_item.
        f_gmvt_item-entry_qnt  = gf_item-quantity.
        f_gmvt_item-entry_uom  = 'PC'.
        f_gmvt_item-entry_uom_iso = 'PCE'.
        f_gmvt_item-po_pr_qnt = gf_item-quantity.
        f_gmvt_item-orderpr_un = 'PC'.
        f_gmvt_item-orderpr_un_iso = 'PCE'.
        f_gmvt_item-no_more_gr = 'X'.
        f_gmvt_item-ref_doc    = p_ebeln.
        f_gmvt_item-prod_date  = sy-datum.
        f_gmvt_item-mvt_ind    = 'B'.
        f_gmvt_item-move_reas  = '101'.
        f_gmvt_item-vendor      = gf_lfm1-lifnr.
        APPEND f_gmvt_item TO t_gmvt_item.
        CLEAR f_gmvt_item.
      ENDLOOP.
    * cALL THE bapi fm FOR gr POSTING
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = f_gmvt_header
          goodsmvt_code                 = f_goodsmvt_code_tmp
    *     TESTRUN                       = ' '
    *     GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              = f_gmvt_headret
    *     MATERIALDOCUMENT              =
    *     MATDOCUMENTYEAR               =
        TABLES
          goodsmvt_item                 = t_gmvt_item
    *     GOODSMVT_SERIALNUMBER         =
          return                        = t_return
    *     GOODSMVT_SERV_PART_DATA       =
    *     EXTENSIONIN                   =
      IF sy-subrc = 0.
    * For commit the changes use BAPI_TRANSACTION_COMMIT FM.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    *      MOVE: f_GMVT_HEADRET-MAT_DOC   TO WA_DET-MBLNR,
    *            f_GMVT_HEADRET-DOC_YEAR  TO WA_DET-MJAHR,
    *            f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
    *      APPEND WA_DET TO IT_DET.
    *      CLEAR WA_DET.
      ENDIF.

  • Delivery completed indicator for Service purchase order item

    Want to check the PO item for services already delivery completed.
    Field EKPO-ELIKZ (delivery completed indicator) is for material line item, is there a equavalent field for Service line item?
    What field /how to to check for a service line item in Purchase order already delivery completed ?

    For material:
    Delivery completion (DCI) tick available at line item level for each material (EKPO- ELIKZ)so you can check for the each material in PO the DCI is available or not.
    For Services:
    As Service code (Service line items) are maintained in details screen of Header line item. So whenever the DCI (Delivery completion indicator) marked for that Header line item it means that all the service line items are marked as DCI for that Header line.
    DCI indicator can mark manually in Change PO mode and automatically when service entry done as final for that Header line.
    So you can check the DCI for service same way as you do for material
    Hope it will help you
    Regards
    Vikrant

  • How to submit a bug report for OSB? - restore fails if number of items per page is changed from the default of 30

    In the OSB web gui, one of my users found that if the number of items per page is changed from the default of 30, the restore of the file will fail.  He tested this using recent versions of Firefox and IE.  We have verified this to also be the case using Chrome.
    In a directory containing over 100,000 files, moving 30 at a time to find the one to be restored is a very frustrating user experience.
    How do I file a bug report for this issue?  Is there a workaround for this bug to enable my users to more easily find the file to restore without being restricted to the default of 30 items per page?

    Yes there is a bug in the webtool in the current release. You can use the commandline obtool to do the restore, that is much faster and works fine.
    Thanks
    Rich

  • To fill in the material number with item category u201CBu201D for Framework Order.

    The use of framework orders (also referred to as blanket purchase orders)  enables you to procure a variety of materials or services from a vendor up to a predefined maximum value (the value limit).
    Instead of a specific delivery date, you specify a validity period for the order.
    Goods receipts or the entry and acceptance of services performed are not necessary in the case of a framework PO and limit items.
    The invoices are posted directly with reference to the purchase order, provided that the specified value limit is not exceeded. When the value limit of the PO is reached, or the validity period is exceeded, the system issues a warning message. It is possible to book the invoices, but these are blocked for payment.
    During the phase of service performance, the cumulative u201Cactual" values (for the services actually performed) are continually updated in the underlying purchase. This enables you to monitor the progress of a procurement project on an ongoing basis. By comparing the "actual" value with the total value, you can always obtain an overview of the degree to which a budget for unplanned services or materials has been exhausted (i.e. see whether predefined limits have been reached or nearly reached).
    So with the Framework Order type (FO) and item category u201CBu201D you get the error that it is not allowed to fill in the material number with item category u201CBu201D.
    Please suggest me the possible solution to fill in the material number with item category u201CBu201D for Framework Order.
    Best Regards,
    Harisha

    The Framework order type is specialy defined for lesser value procurements (ex: stationeries, cleaning services ....) which are all not worthy to create Material Master at all.
    If you are very sure to fill the Material number, then proceed with some other document type.
    In what circumstances you want to put material number in FO order?
    Karthi.

  • I have just updated to Lion and now my folders no longer show number of items on the bottom. Is there a fix for this?

    I have just updated to Lion and now my folders no longer show number of items on the bottom. Is there a fix for this? I allways found that handy. Now I have to click on an icon on the top, This is a backward step if that is now the only way to see the number of items. Am I missing something obvious?

    Parrotcat wrote:
    I have just updated to Lion and now my folders no longer show number of items on the bottom...    
    In the good old days of Snow Leopard, an open Finder folder had a border along the bottom of the window which could show the number of items in that window and the total available space on the hard disk or partition that folder resides on. That bottom border is gone in Lion and those two bits of information are gone with it. Is that what you're talking about? If so, I'd like to learn how to get it back too and "Show Item Info" is not the way.

  • In ME21N,User Exit/BADI for  Defaulting  Vendor number at item level.

    Hi Experts.
    In ME21N, for every purchase order, we have condtion tab for each line item.
    Many condition typesot taxes  are listed based on the config for the materials.
    My requirements is, When we go inside by selecting a condition type we find vendor number displayed.
    I need a user exit/BADI for defaulting the Vendor number.
    Regards
    Balaji R

    Hi,
    check with below link,
    fo this one you will find both user exit and badis
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/find%252bapplication%252bclass%252bwith%252bexits%252band%252bbadis%252bfor%252ba%252btransaction
    Regards,
    Madhu

  • Vendor part number for non catalog item in shopping cart?

    I have a requirement to get the vendor part number field in shopping cart basic data for non catalog item. This field is available for catalog items, would it be possible to make the same field available for non catalog items as well?

    Hi Gummadi,
    You can create custom fields in Shopping cart uisng a BADI and can populate the information.
    BBP_CUF_BADI can be used to create customer fields.
    Please get discuss with your ABAP fellow for the creation of customer field.
    Award points for helpful answers.
    Rgds,
    Teja

Maybe you are looking for