Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 293475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:16:31+00:00 2026-05-12T06:16:31+00:00

I have an XML file that I have parsed and have put the information

  • 0

I have an XML file that I have parsed and have put the information I want into several NSArray objects. I want to be able to draw them in a QuartzView (anything better?) to visualize the data. The arrays should all hypothetically contain the same amount of info. I want one array to represent the x axis and another the y. It took long enough to get quartz composer to bind to my array code, but I can only get it to draw either one sphere with unique coordinates or a sphere for every index with same. So basically I need help making a plot in QC based off of array data. The code looks something like this:

- (IBAction) setup:(id)sender {
    BlastParser *bp = [[BlastParser alloc] init];
    NSString *hit_idString = @".//hit_id";
    NSString *evalueString = @".//Hsp_evalue";
    NSString *hsp_align_lenString = @".//Hsp_align-len";

    NSArray *hit_id = [bp getArrayForNode:hit_idString];
    NSArray *evalue = [bp getArrayForNode:evalueString];
    NSArray *hsp_align_len = [bp getArrayForNode:hsp_align_lenString];

    NSLog(@"nodes: %@", Hsp_align_len);
    int i;
    for (i = 0; i < [evalue count]; ++i){
        [qcView setValue:[NSNumber numberWithInt:i] forInputKey:@"iter"];
    }
}

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:16:31+00:00Added an answer on May 12, 2026 at 6:16 am

    It sounds like it might be easier to just use a regular NSView and draw your shapes (in the view’s drawRect: method) with something like:

    int radius = 4;
    NSBezierPath *circle = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(xPos-radius, yPos-radius, 2*radius, 2*radius)];
    [circle fill];
    

    Where xPos and yPos are the coordinates of the point you want to draw.

    However, maybe there is some other reason you want to use Quartz Composer?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file that I want to parse into a database in
I have an XML file that I'm trying to serialize into an object. Some
I have parsed an XML file that is full with articles and every article
I have an XML file with all the nodes that contain information are in
I have a python script that parses an XML file that contains part information
I have python script that parse xml file and execute commands. I want my
I have an XML file that I'm trying to parse with Linq-to-XML. One of
I have an XML file that looks like <?xml version=1.0> <playlist> <name>My Playlist</name> <song>
I have an XML file that reads like this <abc> <ab>value</ab> <aa>time</aa> <ac>money</ac> </abc>
I have an XML file that I'm trying to read from here , and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.