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

  • SEARCH
  • Home
  • 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 6340323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:48:48+00:00 2026-05-24T19:48:48+00:00

Well, I’m learning how to program on a mac, and I’m tired of searching

  • 0

Well, I’m learning how to program on a mac, and I’m tired of searching the for answers, can you guys explain me what I did wrong on my program.

First, I dragged 2 buttons on my window (Load Image, and Unload). Then, I dragged a custom view item and here`s what I did with the Test_Loading_ImagesAppDelegate.h:

#import <Cocoa/Cocoa.h>

@interface Test_Loading_ImagesAppDelegate : NSView {
    NSWindow *window;
    IBOutlet NSView *mypicture;
}

- (IBAction)LoadImage: (id)sender;
- (IBAction)Unload: (id)sender;


@property (assign) IBOutlet NSWindow *window;

@end

After that, I linked up things on Interface Builder normally and made the Test_Loading_ImagesAppDelegate.m:

#import "Test_Loading_ImagesAppDelegate.h"

@implementation Test_Loading_ImagesAppDelegate

@synthesize window;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application 
}
-(IBAction)LoadImage: (id) sender {
    NSURL *myurl;
    NSImage *image;
    NSData *myurldata;
    myurl = [NSURL URLWithString:@"http://....jpg"];
    myurldata = [NSData dataWithContentsOfURL:myurl];
    image = [NSImage initWithData:myurldata];
    [mypicture setImage: image];

}

-(IBAction)Unload: (id) sender {

//Well, still thinking how I'm going to do this, and I would like to make another question: If I dealloc the View or something else the image will disappear?

}

@end

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-24T19:48:49+00:00Added an answer on May 24, 2026 at 7:48 pm

    Well, after coming here again I’ve found this http://www.markj.net/iphone-asynchronous-table-image/ it’s for iPhone but can be adapted to OS X easily. Thanks.

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

Sidebar

Related Questions

Well I'm making an program about payrolls and I'm stuck. In the program, after
Well, i'm learning to work with QML and i have one doubt. In my
well. i was use Reactive Extensions (Rx) package async Request,Before you can start writing
Well, I´m doing and ls program in C and I have a problem. I
Well, this must be a silly one. Here below is a can-not-be-simpler code in
Well I'm designing a Custom WPF control - fore the sake of learning -
Well, this is my first post here and really enjoying the site. I have
Well... simple question, right? But with no so simple answers. In firefox i use
Well, it seems simple enough, but I can't find a way to add a
Well, I have this bit of code that is slowing down the program hugely

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.