<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IApplication object passing - why this object model? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704156#M18862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Andrew - that's quite helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 00:25:46 GMT</pubDate>
    <dc:creator>ScottBrown</dc:creator>
    <dc:date>2010-08-13T00:25:46Z</dc:date>
    <item>
      <title>IApplication object passing - why this object model?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704154#M18860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my first time posting to these forms.&amp;nbsp; I have what I believe is a simple but foundational question concerning the object model at use in ArcObjects / for ArcMap tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed that just about every UI-related method in the .NET/C# API expects an IApplication object.&amp;nbsp; Call it an overly simple question, but why is this?&amp;nbsp; I'm writing an extension to ArcMap, and in doing so I have never noticed the IApplication object change.&amp;nbsp; Isn't this ripe for a singleton object?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As usual with design questions, I assume that their decision was well informed and that I am not.&amp;nbsp; Are there circumstances where a single code base can run against multiple applications?&amp;nbsp; Can the IApplication object be reallocated at run time?&amp;nbsp; Is this related to some detail about COM object programming with which I am not familiar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd appreciate any illumination you could offer, thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 18:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704154#M18860</guid>
      <dc:creator>ScottBrown</dc:creator>
      <dc:date>2010-07-30T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: IApplication object passing - why this object model?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704155#M18861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Scott&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thought I'd replied to this the other day but it seems to have vanished...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Application object will change, for example IApplication::Document will change when you open a new mxd.&amp;nbsp; Though admittedly most of the properties do stay the same.&amp;nbsp; Also you can have multiple instance of Arc running at one time so you could potentially have references to both of these applications, for example if you want to check if another instance is running or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for singleton classes...that's probably a discussion for another day but I think you'll find plenty of people who think they're best avoided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 08:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704155#M18861</guid>
      <dc:creator>AndrewMay</dc:creator>
      <dc:date>2010-08-11T08:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: IApplication object passing - why this object model?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704156#M18862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Andrew - that's quite helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 00:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iapplication-object-passing-why-this-object-model/m-p/704156#M18862</guid>
      <dc:creator>ScottBrown</dc:creator>
      <dc:date>2010-08-13T00:25:46Z</dc:date>
    </item>
  </channel>
</rss>

