Create a tab view item in obj-c for use in applescript studio

I'm making an application with applescript studio. I want to be able to add tab view items to a tab view at the press of a button. The problem I have is applescript studio doesn't allow me to create a new tab view item. So I'm thinking I can create the tab view item using objective-c, pass that to my applescript, then add it to my tab view.
In applescript I plan to use the following call methods to first create the tab view item object, and then add it to my tab view. The objective-c code which is called from the first line in the applescript code is below that. When I run my code I'm getting an error saying newTVI is not defined... so maybe you can see my error! Be kind to me because I'm new to objective-c and I'm sure that's where my problem lies. Anyway, I'd appreciate any help.
==Applescript calls to create and add a new tab view item
set newTVI to call method "returnNewTabViewItem" of class "makeNewTabViewItem"
call method "addTabViewItem:" of objMainTV with parameter newTVI
==Objective-c code to create the tab view item
==makeNewTabViewItem.h==
#import <Cocoa/Cocoa.h>
@interface makeNewTabViewItem : NSTabViewItem
NSTabViewItem *newTVI;
-(NSTabViewItem *)returnNewTabViewItem;
@end
== makeNewTabViewItem.m==
#import "makeNewTabViewItem.h"
@implementation makeNewTabViewItem
-(NSTabViewItem *)returnNewTabViewItem
newTVI = [[[NSTabViewItem alloc] initWithIdentifier:nil] autorelease];
return newTVI;
@end

Please, any ideas?

Similar Messages

  • Add additional tab on item level in contract for customer fields

    Hi Guys,
    Does anyone know if the following is possible in SRM 7.0, and if so can you please give a very short description how to accomplish this -
    In addition to the standard tabs available in the contract (general data, notes, conditions etc.), is it possible to add a new customer specific tab on item level, in a central contract and add some customer fields to this tab?
    I know it is possible to add customer fields in SRM, but I am curious if I can create a new tab for these fields, so that I can group all customer fields together in one place.
    Thx.
    Kind Regards,
    Skander

    Yes. it is possible but you have to take care of in the back end too and how these fields comes and sit in ECC. so that you may need to map in the IDOC or XI data . so that these information must be pssed to ECC and available  and accordingly you need to change in purchase order too since all these data will be copied into purchase order too.
    for example :- if you add one field in header level /item level of contract
    and it must be coppied into Backend contract as well as your next consecutive docuemnt like Purchase order must be taken care. hope you understand now.
    Muthu

  • Creating a new work item instance in a process using PAPI

    I'm seeing that there are a lot of questions on this forum about using Oracle BPM 10g's Java API called PAPI.
    I just uploaded a step by step document on how you could do this using JDeveloper 11. Here's the link to this document: http://www.4shared.com/file/126507332/e814a3a8/CallingPapi.html. The Oracle BPM project I used for this step-by-step document is also in this zip file. If you're curious, this also describes how to download, install and start JDeveloper 11.
    This is not formal Oracle documentation, but I know from teaching our Oracle BPM Bootcamp class that getting PAPI to work is sometimes a challenge and thought this might help. I tried to write it with the "Java Newbie" in mind so do not panic if you aren't an expert in Java (I'm sure not ?:| ).
    This is a simple example that uses most of the logic found in the PAPI documentation on http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Head_PAPI.html in the "Writing Your First Java PAPI Program" section of this document.
    The document provides a step-by-step description on how how to use PAPI to:
    <li> interface to processes running on an Oracle BPM Enterprise Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> interface to processes running on an Oracle BPM Studio Engine
    <li> list processes currently running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> list the work item instances running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> create a new work item instance in a process and pass in input argument variables to the new instance as it is created.
    Hope you find this useful,
    Dan

    Hi
    i have gone through your example. It gives good information how to connect to BPM engine through java papi client. I have followed exactly the same steps given in the PDF document. But it throws the exception on both java client side and BPM Suite.
    Steps followed :
    1. Import sampleproject.exp into Oracle BPM studio and start the BPM engine.
    2. Imported the fuegopapi-client.jar and Write the JAVA PIPA client to connect Oracle BPM Engine.
    complete example code:_
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import java.util.Properties;
    public class ProcessAPIClient {
         public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.PROJECT_PATH, "C:\\Oracle\\OracleBPMWorkspace\\SampleProject" );
    configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", null);
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// Close the session ///////////////////
    session.close();
    /////////////////// Release API Resources ///////////////////
    processService.close();
    } catch (CommunicationException e) {
    System.out.println("Could not connect to Directory Service");
    e.printStackTrace();
    } catch (OperationException e) {
    System.out.println("Could not perform the requested operation");
    e.printStackTrace();
    It throws the following exception and output on java client._
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Creating ProcessService with id 'SampleProject'.
    Local folder /tmp\system\Schema33871921573571055\catalogs found.
    Loading catalogs from local folder: /tmp\system\Schema33871921573571055\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [SampleProject] ...CatalogManagerCache 23240993:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [SampleProject] REGISTERED!CatalogManagerCache 23240993:
    Managers:
    {SampleProject=fuego.util.LocalCatalogManager@40b187}
    Counters:
    ProcessService 'SampleProject' created successfully.
    Process: /SampleProcess#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageEOFException
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at $Proxy24.<clinit>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at fuego.papi.impl.AbstractProcessControlHandler.newProxyInstance(AbstractProcessControlHandler.java:52)
         at fuego.papi.impl.rmi.RMIProcessControlHandler.createProxy(RMIProcessControlHandler.java:47)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createProcessControl(RMIEngineAccessImpl.java:111)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1082)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2698)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1675)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2703)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2365)
         at com.eds.comet.bpm.oracle.papi.client.ProcessAPIClient.main(ProcessAPIClient.java:30)
    Caused by: java.lang.ClassNotFoundException: javax.jms.MessageEOFException
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 16 more
    It throws the following exception and output on Oracle BPM Suite._
    Client 'Id=test, Name=test, In=1, Session=564242434' was not found in lists ', PARTICIPANTS' while disconnecting it.
    Please help me to resolve this. I noticed it is able to connect BPM engine and retrieve process list. But while getting instances, it throws the exceptions on both Java Client and BPM engine side.
    Thanks and Regards
    Mahesh

  • Steps to implement ME_GUI_PO_CUST ME21N to create custom tab at item level

    Dear Gurus,
    I have to create one Custom tab in ME21N item level beside Conditions.
    The Tab name is Customer. I'm very new to ABAP so after searching the forums I got ME_GUI_PO_CUST  badi is used to do that. In the Custom tab my required fields are
    PO NO1--                        PO NO2--
    PO Item NO1----
                     PO Item NO2
    Quantity----
                          Quantity
    SO NO1--                       SO NO2--
    SO Item NO--                 SO Item NO--
    any one provide me the sample code to implement this.
    Thanks!

    solved

  • Wrong excise Base in Excise tab in Item details in MIGO for ImportPurchases

    Hi All,
    We are facing an issue with wrong excise base in transaction MIGO item datails in excise tab,
    Info:Excise base for CVD is Assassable value +Basic customs Duty.
    Case:
    In  PO ,
                 Value in USD     Ex Rate          Value In INR
    Assesable value     101                            52.4659          5299.0559
    IN Basic customs     10.1          52.4659          529.90559
    Sub (*** Value + BCD     111.1          52.4659          5828.96149
    IN CVD          11.11                            52.4659          582.896149
    In this case the excise Base in system has to be Assassable value +BCD= 5828.96
    But in MIGO in excise tab excise Base is 5,776.50--> which is wrong.
    Please help in correcting the same in system.
    All relevant configuration and default conditions are maintained in systm.
    Regards,
    Vijaykumar P

    > Info:Excise base for CVD is Assassable value +Basic customs Duty.
    > In this case the excise Base in system has to be Assassable value +BCD= 5828.96
    Hi, I think your system is showing correct,
    Base at the time MIGO will not be Assassable value +BCD, It will only be Assassable value,
    Your 1st point is right "Excise base for CVD is Assassable value +Basic customs Duty"
    Assassable value consist of Material cost, Insurance, Freight, 1% Landing charge etc. Check with your Imports team & Excise team for the same.
    Apart from that, if your concern is about values then just check the exchange rates & the Miro posting what you have did.

  • How do I create a Sample (or EXS Instrument) in Logic for use in MainStage?

    I am clueless as to where to start. I looked through the manual, but I'm having trouble making any sense of it. I'm not too familiar with the EXS24 Sampler, but I know that's where to start. I have several AIFF's (my own samples I would like to use), and it doesn't matter whether each sample is mapped individually or together on the keyboard.
    My objective: Take a sample (such as an AIFF, Wave, etc.), and assign the sample to a new patch to be used in MainStage.
    Here's the Logic Manual, if it helps.
    http://manuals.info.apple.com/en/LogicPro_8_UserManual.pdf
    Thanks!

    I figured it out!

  • How to create a slide combining an FLV and jpeg for use in PP?

    I am using the CS4 Master Collection. I want to integrate slides into my DVD curriculum project. I would like to use the flv as the background, put a slightly smaller jpeg (or other graphic) translucent tinted panel on top of it, and then my text. Can it be done?

    What I have is a nice FLV from istockphoto that I want to use as sort of a bottom layer, put a static tinted translucent layer on top of it, and finally the text layer. Then put it in PP. It would make a nice slide I think as I move from the talking head to various graphics. Is there a Title template perhaps that is translucent that would show the FLV underneath and I could easily add the text?
    Maybe this question should be posed in the Flash or Photoshop forum?

  • How do you create transparent text with black background in LiveType for use in Final Cut??

    I would like to bring in movies or projects from LT that have transparent text ("alpha" layer?) and a solid background. The goal is to layer fcp video under the animated text generated in LT so that the video layer fills the transparent text layer. I know you can matte to movie or image in LT, but would prefer to do this in FCP. Long story short, need a text transparency from LT. Thanks!

    Video track 1: Your background.
    Video track 2: White text on a black background.
    Video track 3: The fill image for the letters.
    Right click on the clip on track 3. From the drop down menu, choose Composite Mode > Travel Matte Luma.

  • How to show SharePoint list items in tab view?

    Hi All,
    I would like to show list items in tab or metro tiles like:
    How to achieve this?
    Thanks in advance!

    Hi Sam,
    you can either use third party controls or create your own using JQuery / Javascript-
    my preference is JQuery UI.
    here are some references-
    http://summit7systems.com/tabbed-web-parts-in-sharepoint-2013-office-365/
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-2010-at-Work-SharePoint-2010-Tab-Page-Peter-Allen.aspx
    http://sympmarc.com/2011/11/09/adding-a-tabbed-view-to-a-web-part-page-using-jqueryui/
    http://kyleschaeffer.com/sharepoint/wp-tabify/
    Metro Style -http://dellakin-smith.com/sharepoint-2010-a-simple-metro-style-dashboard/
    http://www.metaengine.com/2012/03/SharePoint-menu-web-part-with-Metro-style-using-a-DVWP
    Third party - http://www.amrein.com/apps/page.asp?Q=5806 
    note: i dont work for amrein or endorse their product, this product was suggested since it gets has functionalities that you are looking for.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Specifying items inside a tab view

    Someone please help, I can't figure this out:
    I'm building an app with Applescript Studio starting with the Table sample project. I had everything working until I messed with the interface moving things into tabs; now I don't know how to change the following line:
    set contactsDataSource to data source of table view "contacts" of scroll view "contacts" of theObject
    that's the original line that broke when I moved table into a tab (called "orders"). How do I change that line now that the table is inside a tab? I tried something like this:
    set contactsDataSource to data source of table view "contacts" of scroll view "orders" of view of tab view "orders" of theObject
    and variations of that, but no matter what I do, I can't seem to call it correctly. Any suggestions would be appreciated!

    I'm assuming that "theObject" is the window for the "will open" handler of the with.applescript.
    It may be easier to see the hierarchical structure of your user interface objects by switching the Instances tab of your nib file from icon view to outline view. To do so, click the icon for list view in the top of the right-hand scroll bar (it's the lower icon; the top is for icon view). Then disclose the various triangles for your objects.
    You almost have the right sequence. A tab view (NSTabView) consists of a series of tab view items (NSTabViewItem), one for each of the different tabs in the view. So, make sure your tab view item has an AppleScript name "tabViewItem" and then it should look like this:
    set contactDataSource to data source of table view "contacts" of scroll view "orders" of tab view item "tabViewItem" of tab view "orders" of theObject
    Hope this helps....
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.8)  

  • Dynamically create and remove TEXT items in forms

    Hi Guys,
    Is there a way to dynamically create and remove TEXT items in form. For example I have the EMP and DEPT table and when
    I select the EMP table name from the LOV, rows of the EMP table with column name and data should get displayed on the screen and likewise a similar action for DEPT table and
    so on. I have about 90 tables from where data could be required to view and edit. They all have varying number of columns.
    Any suggestions ?
    Thanks
    KMD
    null

    Use OLE concept of developer and map Excel as an object
    Nadeem
    null

  • Libraries in tab view in sharepoint

    Hi
    I have created 3 document libraries and a created 3 tabs views using java script and added those libraries in the tab views.
    Now whenever i click on any of the folder the page gets refreshed and the default tab opens automatically, ideally i should be on the same tab on which i am working.
    How can this problem be eliminated.
    Please help.
    Code which i used to create the tab view:
    <div id="tabs">
    <ul>
    <li><a href="#tabs-1">Tab1</a></li>
    <li><a href="#tabs-2">Tab2</a></li>
    <li><a href="#tabs-3">Tab3</a></li>
    </ul>
    <div id="tabs-1">
    INSERT Web Part -1 HERE
    </div>
    <div id="tabs-2">
    INSERT Web Part -2 HERE
    </div>
    <div id="tabs-3">
    INSERT Web Part -3 HERE
    </div>
    </div>
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
    " rel="stylesheet" type="text/css"/>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js
    "></script>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
      <script type="text/javascript">
      $(document).ready(function() {
        $("#tabs").tabs();
    </script>

    Found some articles, have a look at them
    http://sharepointtabs.codeplex.com/
    http://geekswithblogs.net/djacobus/archive/2013/11/17/154639.aspx
    http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=42
    http://www.amrein.com/apps/page.asp?Q=5806
    Hope this will help you
    Senthilrajan Kaliyaperumal

  • How to create an image viewer

    i need to know how to create an image viewer would appreciate
    help thanks

    you can use loadMovie() to load a jpg image into flash (and
    if you're using flash 8 you can load other image formats into
    flash) and use it to create an image viewer.

  • How to create a BOM for use in purchasing

    Hello Experts
    We are a University, and I have been asked to create something similar to a bill of material for using on a purchase order.
    We purchase light bulbs from a supplier, but each bulb also incurs a 15p disposal charge and this charge has to be shown as a separate line item on the purchase order.  So we want to create a material that when used pulls through an additional line for the disposal charge.  Also the light bulbs are held in stock and are issued out to departments, therefore the cost of the light bulb and disposal charge must be charged out too.
    Thanks

    HI,
    Bills of material are best used when there are components that are relevant. They CAN be used for things like you mention here but I am not sure that it will help your business requirements.
    I would suggest that you consider adding the charge as a new pricing condition.
    That way the total cost of the item will be the price plus the disposal charge. If you use a separate line on the PO the cost of the disposal will not be connected to the cost of the bulb and so when you issue any they will use the cost without the disposal charge.
    SO I would create an info record and enter the details of the price and then add in a surcharge condition type (for the disposal cost).
    That ay whenever you order these bulbs from this vendor, the system will propose the cost including the disposal cost.
    Steve B

  • How to create a Tab Link in the existing view

    Hello Experts,
    My requirement is to make one view as Tab Link.
    You must have seen in many existing IC Web screens, there are multiple tabs in the view area and you can toggle between the views by clicking the tab links.
    As per my requirement, in the component ICCMP_BT_INR, in one of the views i need to create a tab link for the view Questionnaire which is part of different component ICCMP_SURVEY
    Could you please guide me here ?
    Regards,
    Srikanth

    Hi,
    I quite certain that you can do this but it is lot of work. You need to create navigations links in run time repository, create plugs, create viewset with views. And then mostly important you need to call appropriate plugs, navigations. I am afraid I can not explain every thing step by step but definitely it requires lot of details and work.
    However if you can see some existing examples then you will get an idea. One good example I have worked on is IUICMIO_MAIN and IUICMIO_METER. In this when MIO_ACCOUNT is called in MAIN, it will call two tabs from IUICMIO_METER dynamically.
    Hope this helps.
    -ASB

Maybe you are looking for

  • Can multiple users edit a draft page

    I have a client that is considering using Contribute to update their web site, but they need the capablility for multiple authors to edit the content of a page and then submit it for review before it is published. Can this be done with Contribute by

  • How can I buy an iPhone 4S if I am not eligible for a phone upgrade?

    I have an Android - hate it!  Ready for the global verizon iPhone!!  Can I get it Friday?  I heard only folks eligible for upgrade can get the phone this week.  True?  And yes, I am prepared to pay retail.... $849 - ouch.

  • AV Files

    Hi all, I am coding video conferencing software. And I am using the AVTransmit2.java and AVRecevice2.java files downloaded from sun site as code samples. Following is how I run the AV files java AVTransmit2 vfw://0 220.247.230.230 45728 java AVReceiv

  • Primary cost planning other than object currency

    Dear All, I have maintained my controlling area curreny and Cost center object currency as USD. Now As per my user requirement i need to do primary cost planning using KP06 in SGD currency. Please help to provide your suggestions. Is it possible to s

  • Finding Approvers for Shopping Cart

    I'm in BADI BBP_DOC_SAVE_BADI, which fires when the shopping cart is either submitted or saved, and gives the shopping cart's GUID as an input. I need to find all the approvers that have been assigned to this shopping cart. I have looked in BBP_PD an