Newbie Function Declaration Question

I'm getting a "method undeclared" error in XCode on my method "useOpenFileToGetFSRef".
INTERFACE:
@interface MyDocument : NSPersistentDocument {
IBOutlet NSString *nameOfSourceFile;
- (IBAction) getSourceFile:(id)sender;
- (FSRef) useOpenFileToGetFSRef; //THIS IS THE METHOD I'M TRYING TO DECLARE
@end
IMPLEMENTATION:
@implementation MyDocument
- (FSRef)useOpenFileToGetFSRef //NO COMPILE ERROR FOR THIS LINE
//function body...
- (IBAction) getSourceFile:(id)sender{
FSRef theFileFSRef = useOpenFileToGetFSRef; //COMPILE ERROR: 'useOpenFileToGetFSRef' UNDECLARED
FSRef a = theFileFSRef;
//more...
@end
How do I correct this? Thanks in advance for any info.

Write it as a function:
FSRef useOpenFileToGetFSRef(void)
of course, you won't have access to any of the data structures in the document.

Similar Messages

  • CRM FUNCTIONAL interview questions and answers

    Dear Friends,
    Good Afternoon..!!!
    can you tell me the CRM FUNCTIONAL interview questions with answers if avialable.....
    Regards,
    Dhananjaya

    Dear friends,
    Can any body forward me interview questions and answers
    can any body tell me where can i get crm functional video tuter

  • Travel Management functions interview question and answers

    Hi Guys,
    I wanted to know Travel Management functions interview question and answers , it is most urgent for me.
    Your detail response will be highly appreciated.
    Thanks – Sam.

    Check this site
    http://help.sap.com/saphelp_470/helpdata/en/73/6bf037f1d6b302e10000009b38f889/frameset.htm
    Regards,
    Ruben

  • Oracle Asset (Functional) Practice Questions for Interviews and Exam

    https://www.createspace.com/3495382
    http://www.amazon.com/Functional-Questions-Interviews-Certification-Examination/dp/1456311581/ref=sr_1_4?ie=UTF8&s=books&qid=1289178586&sr=8-4
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • Oracle Asset (Functional) Practice Questions for Interviews and Certificati

    https://www.createspace.com/3495382
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • What is the difference between the function declared in the package and pac

    What is the difference between defining a function in the package and package body ?
    Edited by: user10641405 on Nov 19, 2009 1:29 PM

    If you describe a package, you will only see the functions declared in the spec.
    If you only declare them in the body then they are not available to other packages (they are private to the package, not public)

  • Type declaration question

    I have the following code declared in a package spec..
    CREATE OR REPLACE PACKAGE PACK_MONTH_PAY IS
    FUNCTION fn_pop_ept_table(pn_accgrp_num IN NUMBER,
    pn_latype_code IN NUMBER,
    pn_part_num IN NUMBER,
    pd_period_start IN DATE,
    pd_period_end IN DATE) RETURN tab_pay_due;
    FUNCTION fn_fetch_ept_details(ps_ept_code IN VARCHAR2,
    pn_part_num IN NUMBER,
    tab_ept_pmt IN tab_pay_due) RETURN NUMBER;
    TYPE rec_pay_due IS RECORD(
    ept_code expected_payments.ept_code%TYPE,
    amount expected_payments.amount%TYPE,
    part_num expected_payments.loanpt_part_num%TYPE,
    pay_date expected_payments.start_date%TYPE,
    arrs_seq expected_payments.arrs_grp_seq%TYPE);
    TYPE tab_pay_due IS TABLE OF rec_pay_due INDEX BY BINARY_INTEGER;
    END PACK_MONTH_PAY;
    On a 10.2.0.1.0 db it compiles fine. On an 8.1.7.4.0 db it fails with the following error:
    LINE/COL ERROR
    23/9 PLS-00498: illegal use of a type before its declaration
    16/1 PL/SQL: Declaration ignored
    28/18 PLS-00498: illegal use of a type before its declaration
    25/1 PL/SQL: Declaration ignored
    I can see why this is happening as the function declarations come before they types they reference. However, I don't understand why it compiles on the 10.2 db!
    Can anyone shed any light on this madness?

    However, I don't understand why it compiles on the 10.2 db! Well, I do not either, since it does not.
    SQL> CREATE OR REPLACE PACKAGE PACK_MONTH_PAY IS
      2
      3  FUNCTION fn_pop_ept_table(pn_accgrp_num IN NUMBER,
      4  pn_latype_code IN NUMBER,
      5  pn_part_num IN NUMBER,
      6  pd_period_start IN DATE,
      7  pd_period_end IN DATE) RETURN tab_pay_due;
      8
      9  FUNCTION fn_fetch_ept_details(ps_ept_code IN VARCHAR2,
    10  pn_part_num IN NUMBER,
    11  tab_ept_pmt IN tab_pay_due) RETURN NUMBER;
    12
    13  TYPE rec_pay_due IS RECORD(
    14  ept_code expected_payments.ept_code%TYPE,
    15  amount expected_payments.amount%TYPE,
    16  part_num expected_payments.loanpt_part_num%TYPE,
    17  pay_date expected_payments.start_date%TYPE,
    18  arrs_seq expected_payments.arrs_grp_seq%TYPE);
    19
    20  TYPE tab_pay_due IS TABLE OF rec_pay_due INDEX BY BINARY_INTEGER;
    21
    22  END PACK_MONTH_PAY;
    23  /
    Warning: Package created with compilation errors.
    SQL> show errors
    Errors for PACKAGE PACK_MONTH_PAY:
    LINE/COL ERROR
    3/1      PL/SQL: Declaration ignored
    7/31     PLS-00498: illegal use of a type before its declaration
    9/1      PL/SQL: Declaration ignored
    11/16    PLS-00498: illegal use of a type before its declaration
    13/1     PL/SQL: Declaration ignored
    14/10    PLS-00201: identifier 'EXPECTED_PAYMENTS.EPT_CODE' must be
             declared
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>

  • Regular exression for matching function declarations or calls

    Hi guys,
    I used a regular expression like \\w + (\\s*) \\( .*\\) (\\s*) [\\{;] to match function
    declarations.This regular expression works fine for all the declarations of the form init_queue(TREE **NODE) {  and even for declarations of the form
    init_queue (TREE **NODE)
    But the problem occurs when i have a declaration of the form
    init_queue(TREE **NODE ,
    int size ) {
    when i have a declaration of this form my regular expression doesnt parse function names.The regular expression . (DOT) means it recognizes anything except for line terminators.So i used the DOTALL option in pattern matching so that .(DOT) matches even line terminators.But using this has a negative effect like i am not able to match declarations of the form
    init_queue(TREE **NODE) { 
    can anyone help me out in solving this
    Thank you,
    Akash

    multipost: http://forum.java.sun.com/thread.jspa?threadID=5168705

  • Receiving warning: implicit function declaration: memset

    We have the Sunstudio 11 compiler: Sun C 5.8 2005/10/13 and I created a C program and am receiving the above message:
    include <stdio.h>
    #include <stdlib.h>
    int
    main(int argc, char** argv)
    char formatString[200];
    memset(formatString, 0, sizeof(formatString));
    if (argc != 2)
    fprintf(stderr, "Usage: %s: argument\n", argv[0]);
    return (1);
    sprintf(formatString, "Hello %s, from old hello world program", argv[1]);
    printf("%s\n", formatString);
    return (EXIT_SUCCESS);
    When I compile, I receive
    "warning: implicit function declaration: memset". I also have code that uses strcpy and strcmp and I receive:
    warning: implicit function declaration: strcpy
    warning: implicit function declaration: strcmp
    When I compile with Workshp 6.2, this warning does not occur. This problem is a prototype issue. In Workshop 6.2, this was resolved if the string.h was not included. The compiler searched until it found the correct header. Is there a way to get the compiler to do what Workshop did?

    Thanks, I was just wondering why in 6.1 it was resolved. By including the appropriate header, the problem goes away. With the stub, I wrote, the program compiled on 6.1 with no warnings. But with studio, it compiled with the warning. This was a little bit strange. The developer really should include the appropriate header.

  • Implicit function declaration warnings

    Hi All,
    Code look likes below,
    #include <stdio.h>
    #include <errno.h>
    #include <signal.h>
    #include <sys/types.h>
    #include <sys/ipc.h>
    int main()
    struct sigvec *svec;
    int sig;
    sigvec(sig, &svec, NULL);
    return 0;
    When i compile this with forte 4.2 compiler its not throwing any warnings. and when compiled with forte 6.2 its throwing warning as:
    "imp.c", line 9: warning: implicit function declaration: sigvec
    How can i resolve this.
    Compile:
    cc -g -o imp imp.c -lnsl -lucb
    And cc location is : /opt/forte62/SUNWspro/bin/cc
    Output of uname -a :
    SunOS server1 5.9 Generic_117171-17 sun4u sparc SUNW,Sun-Fire-V440
    For PATH variable i given /opt/forte62/SUNWspro/bin prior to /usr/ucb.
    Thanks & Regards,
    Sarath.

    In the same way i am facing one more problem:
    Below is the sample c code.
    #include <stdio.h>
    #include <errno.h>
    #include <signal.h>
    #include <sys/types.h>
    #include <sys/ipc.h>
    int main()
    struct sigvec svec;
    int sig;
    svec.sv_flags = 0;
    svec.sv_mask = 0;
    sigvec(sig, &svec, NULL);
    return 0;
    if I compile this getting errors like this.
    cc -g -o imp imp.c -lnsl -lucb
    "imp.c", line 8: incomplete struct/union/enum sigvec: svec
    "imp.c", line 10: undefined struct/union member: sv_flags
    "imp.c", line 11: undefined struct/union member: sv_mask
    cc: acomp failed for imp.c
    my PATH variable is set to : (I tried by putting /opt/SUNWspro/SC4.2/bin before /usr/ccs/bin also)
    /usr/java1.2/bin:/usr/ccs/bin:/usr/atria/bin:/opt/SUNWspro/SC4.2/bin:/usr/local/bin::.:/usr/java1.2/bin:/usr/ccs/bin:/usr/atria/bin:/opt/SUNWspro/SC4.2/bin:/usr/local/bin::.:/usr/bin::/usr/atria/bin:.::/usr/java1.2/bin::/usr/java1.2/bin
    and LD_LIBRARY_PATH is set to :
    /opt/SUNWspro/SC4.2/bin:/usr/ucblib:/usr/lib:/usr/lib:/usr/java1.2/bin:/opt/SUNWspro/SC4.2/bin:/usr/ucblib:/usr/lib:/usr/lib:/usr/java1.2/bin:/opt/SUNWspro/SC4.2/bin:/usr/ucblib:/usr/lib:/usr/lib:/usr/java1.2/bin:/usr/ucblib:/usr/lib:/usr/lib:/usr/java1.2/bin:::
    output of which cc is :
    /opt/SUNWspro/SC4.2/bin/cc
    If I compile the same with /usr/ucb/cc then its going through.
    /usr/ucb/cc imp.c
    Regards,
    Sarath

  • Newbie functional question on MM Invoice Verification

    Dear forumers,
    How can I check for a completed status of an invoice verification in the SAP MM module?
    I was told that this can be checked from the RBKP-RBSTAT field. Is it also right to say that RBSTAT = 'B' to indicate that the invoice verification is completed? Are there any other further checks required too? Would need more confirmation on this.
    Appreciate any help at all. Thanks.

    Charlie,
    Thanks for your input here.
    Well, the requirements are looking more specifically into whether a purchase order's status is overdue, or not yet due, etc. And according to the requirements too, such PO status is determined by checking on the Goods Receipt and Invoice Verification statuses as well.
    So, to check for completed Goods Receipt, I used this condition: EKPO-WEPOS = u2018Xu2019. And to check for incomplete Goods Receipt, I used this condition: EKPO-WEPOS = u2018 '.
    To check for incomplete Invoice Verification, I think I can use this condition: RBKP-RBSTAT = u2018B'. And to check the incomplete Invoice Verification, I think I can use this condition: RBKP-RBSTAT not equals to u2018B'.
    Could you please help to verify this for me? Or do I need to use other fields to check on this condition as well, i.e. EKPO-ELIKZ or EKPO-REPOS?

  • GRC 10.0 Upgrade & Functionality - 4 Questions

    Hi Forum,
    We are currently evaluating upgrading to GRC 10.0 from 5.3 and also start using SPM. Currently, we only use RAR. Can you guys help me with following 4 questions?
    1. We have a number of different firefighter roles used by different teams and approved by different approvers. Can we have separate requester and approver lists for different firefighter accounts in GRC 10.0 SPM?
    2. Do we have to implement GRC 10.0 Portals for SPM approval workflow?
    3. We have license for all GRC modules. Does this also include Continuous Transaction Monitoring with Oversight or is a separate license required for this?
    4. Does GRC 10.0 support automatic archiving of AC-RAR SoD reports? - When I start a weekly background job, can it be automatically archived into an archive folder of my desigantion?
    Thanks so much for your input.
    Joerg

    hi Joerg
    1.Yes, you can have different approvers per firefighter ID and have the requestors assigned to different ones as well.
    2.You do not need to install portal but you will need to facilitate some access to the front end components through activating the NWBC Netweaver Business client or using a web browser to view the internet facing services in SICF.
    3. I don't believe that your GRC license automatically entitles you to the Oversight product suite as they are still separately marketed, however the GRC Process Controls and Risk Management modules can be included if you have a full enterprise GRC license from SAP.
    4. You could certainly manage to archive the reports using standard SAP ABAP functionality (SARA). However, If you mean the standard Batch risk Analysis, then I think you'll find that the offline content is overwritten with the latest and only the summary data is retained in the historical data tables for trend analysis. From an audit perspective, historical detailed data is not partuicularly useful since they are more interested in current exposure. Auto archiving of the SPM logs is available as standard.
    Regards,
    Simon

  • Forum Search Function - A Question

    I know that the Adobe Forum team has worked hard over the last year, to improve the forums' Search Function. The standardization across the various forums, the utility of Search, HAS been improved - thank you for that work.
    However, once, after one ran a Search, and received a results page, it was possible to go thread-by-thread in those results, to pick the one, ones, that worked for an OP's situation, and by just using the browser's Back button, the searcher was taken back to the Search results page, for more research. Now, the Back button takes me (Chrome on Windows PC) to the general Discussions page, and not the Search results page. This means that the Search criteria have to be re-added. At first, it would seem that Copy/Paste for the Search criteria would be the best workflow, and just re-do that Search, over and over, reading one thread per Search. However, I use Search most often to help posters get answers, and I use the URL to the existing threads to do that. Here is an example of how I use Search, and how it works for me now - the current Search:
    Poster has a question, and many other threads in a forum answer that/those question(s). I find six existing threads, that match my Search criteria. Good so far. I then need to read all six threads, to find the one(s), that are best for the new poster. When I find one, I Copy the URL of that thread, and add that to my Reply to that poster. I cannot Copy the Search criteria, to use in the Search query box, as I just Copied the URL to one thread in the list. I then have to go back to the main Discussions page, and re-initiate my Search, to read the second of the six threads - rather tedious, especially with more than one useful thread.
    My workaround now, is to create a NotePad document with my Search criteria, and go back to it, Copying and Pasting those characters, after doing a Copy/Paste of a threads URL. Still tedious, but less typing.
    Not sure if the old method, or using Back to get to the Search results page, could be re-implemented, leaving the rest of the Search functions untouched, or if someone knows a neat way to return to the Search results page, that I just am not aware of (do not mind admitting OE on my part, and am open to perhaps a better workflow, for how I normally use Search).
    Hunt

    Jacob, unfortunately and although true, that doesn't agree with the image "normal" users get, with those unnecessarily brightly colored badges, and even more unnecessary special backgrounds in their posts, no matter how trivial (and I am not in the least questioning their most legitimate right to post trivial messages)... Their word doesn't become the Bible by the mere fact of being punished with their MVP titles, as the highlighting of their posts seems to suggest.
    And yes, I know that -at least- many of you haven't chosen to be nominated as MVPs but, what does the general public think? Most probably, that you all have full moderating powers, and some other powers as well. A sad, artificial, and most unneeded situation -most definitely not an improvement.

  • SRM Functional interview questions

    Hi all,
    I am a SRM Technical consultant and looking to move to the functional side.
    I am aware of the P2P cycle but If im interviewed for the functional role,what are the possible questions I would have to answer?
    Which areas do I need to focus...E.g. Configuration??Business process???Procurement cycle???
    Any links to get a general idea abt the common terminologies ...business process would be really helpful.
    Thanks.

    Hi Subodh,
    I would advise to go thru SRM course books such as SRM Overview, SRM 210 and SRM 270.
    Knowledge in SAP MM is an added advantage.
    Apart from these go thru SRM cookbooks eg. config of extended classic scenario by Shaz Khan
    Regards,
    Uzair Hussain

  • Jstl function tags question

    I'm trying to output the size of a Vector in jstl 1.1 like
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <%@ include  file="header.jsp"%>
    <!-- ### -->
    <c:out value="${fn:length(aliasesInfo.aliases)}" />but when I run my app I get tomcat errors
    org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c in /jsp/aliases/confirmAliases.jsp</h3><p>87: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:length(aliasesInfo.aliases)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.</p>Am I declaring the taglib correctly for the fn prefix?

    Hi ,
    i am uday
    i am very new to JSLT, i have no idea about it..
    i have been alloted a poject on JSLT ..the details of which will be getting on monday ...
    can you please help me in this regard ..where can i get materail or good information regarding JSLT..how it works ..
    Thanx in advance
    Uday

Maybe you are looking for