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 7919941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:02:15+00:00 2026-06-03T16:02:15+00:00

Here is the complete .m file : #import DevotionalView.h @implementation DevotionalView @synthesize mytextview; @synthesize

  • 0

Here is the complete .m file :

#import "DevotionalView.h"

@implementation DevotionalView
@synthesize mytextview;
@synthesize mystring;



    - {void} awakeFromNib {
    NSURL *myurl = [NSURL URLWithString:@"http://www.myserver.com/text.txt"];
    NSString *mystring = [NSString stringWithContentOfURL:myurl];
    mytextview.text = mystring;
}


- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
    // Initialization code
}
return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
// Drawing code
}
*/

@end

The errors are: ‘@end’ is missing in implementation context –where the @implementation DevotionalView is– and at the {void} line it says Expected selector for objective-c method.

Thanks for taking the time to help!

The errors are: ‘@end’ is missing in implementation context –where the @implementation DevotionalView is– and at the {void} line it says Expected selector for objective-c method.
Also, at the end of the file it say “expected method body”

Seems to work fine in the tutorial I followed, but it will not compile in XCode 4.3.

I’m using Storyboard– will this change the part about NIB? I apologize for my lack of knowledge– still getting used to this.

Thanks for any help!

  • 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-06-03T16:02:17+00:00Added an answer on June 3, 2026 at 4:02 pm

    Well, I finally worked around it– from my searches it would appear that I had either messed up a delegate assignment or some such thing. So…(and you pros might groan at this) I opened up a new project (single view with a controller) and copied and pasted the controller, .h and .m files in, then used this code:

    - (void)viewDidLoad
    {NSError *error = nil;
    NSURL *myurl = [NSURL URLWithString:@"http://www.myserver.com/test.txt"];
    NSString *mystring = [NSString stringWithContentsOfURL:myurl encoding:NSUTF8StringEncoding     error:&error]; 
    newtext.text = mystring;
    

    All is well!

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

Sidebar

Related Questions

Here is a complete example. I want to forbid using A::set from objects casted
Here is the complete error message that I get in the Package Manager Console
I am trying to submit a form with ajax. Here is my complete code
complete noob to Haskell here with probably an even noobier question. I'm trying to
Here is my code. The complete binary tree has 2^k nodes at depth k.
Complete new person to Ruby and Rails here... Have tried some tutorials in the
The current form is here . It is not complete, and only a couple
I currently have a complete cover background image. Here is the code: #back{ /*
There's something in my preferences file that is causing Eclipse's auto-complete feature (for Java)
i'm doing a flash web site and i want to import a html file

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.