• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Referencing an AUGraph from a different class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referencing an AUGraph from a different class


  • Subject: Re: Referencing an AUGraph from a different class
  • From: Gregory Wieber <email@hidden>
  • Date: Fri, 21 May 2010 15:36:39 -0700

"@property (readonly) AUgraph pGraph;"

Typo:  should read:  @property (readonly) AUGraph pGraph;

On Fri, May 21, 2010 at 3:35 PM, Gregory Wieber <email@hidden> wrote:
That's what's confusing to me.  In my child class, the graph property is defined as:

AUGraph graph;

In the parent class I have:

AUGraph pGraph;

@property (readonly) AUgraph pGraph;

and

@synthesize pGraph;


Then later in the parent Class implementation I have:

result = NewAUGraph(&pGraph);

and in the child class I try to do:

graph = [parentController pGraph];

Which is when I get that error mentioned previously.  As you can see,  I'm defining the property as an AUGraph, not an objective-c object.  


On Fri, May 21, 2010 at 3:01 PM, Kyle Sluder <email@hidden> wrote:
On Fri, May 21, 2010 at 2:36 PM, Gregory Wieber <email@hidden> wrote:
> Is it possible to declare an AUGraph in one objective-c class,  and then
> access that graph from another objective-c class?
> I thought it would be as simple as creating a var called 'graph' and then
> using @property, @synthesize -- and in the other class doing something like
>  graph = [parentClass graph].  Except,  when I do that I get an error:
> "Cannot convert 'objc_object*" to 'OpaqueAUGraph*" in  assignment.

AU graphs are not Objective-C objects, so you have apparently
misdeclared your property.

--Kyle Sluder


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Referencing an AUGraph from a different class
      • From: Kyle Sluder <email@hidden>
    • Re: Referencing an AUGraph from a different class
      • From: Gregory Wieber <email@hidden>
References: 
 >Referencing an AUGraph from a different class (From: Gregory Wieber <email@hidden>)
 >Re: Referencing an AUGraph from a different class (From: Kyle Sluder <email@hidden>)
 >Re: Referencing an AUGraph from a different class (From: Gregory Wieber <email@hidden>)

  • Prev by Date: Re: Referencing an AUGraph from a different class
  • Next by Date: Re: Referencing an AUGraph from a different class
  • Previous by thread: Re: Referencing an AUGraph from a different class
  • Next by thread: Re: Referencing an AUGraph from a different class
  • Index(es):
    • Date
    • Thread