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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:14:19+00:00 2026-05-22T17:14:19+00:00

Cannot retrieve member objects in TTPostController:postController method I’ve been struggling to figure out why

  • 0

Cannot retrieve member objects in TTPostController:postController method

I’ve been struggling to figure out why I’m unable to return any of my member objects when using TTPostController:postController method to send HTTP request. Here’s the code I’m using.

Header:

@interface NewReplyViewController : TTPostController <TTPostControllerDelegate> {
    NSString * _thread_id;
}

@property (nonatomic, assign) NSString * thread_id;

-(id)initWithThreadId:(NSString *)threadId;

@end

Implementation:

@synthesize thread_id = _thread_id;

-(id)initWithThreadId:(NSString *)threadId {
    self = [super initWithNibName:nil bundle:nil];

    if (self) {
        self.delegate  = self;
        self.thread_id = threadId;
        self.title     = kPostReplyPhrase;

        self.navigationItem.rightBarButtonItem.title = kPostPhrase;
    }

    return self;
}

- (void)postController:(TTPostController *)postController 
           didPostText:(NSString *)text 
            withResult:(id)result {

    NSLog(@"postController:postController self.threadid = %@", self.thread_id);
}

Once I reach the NSLog part, where it tries to return the objects thread id after pressing the send button, the app crashes without much detail. The stack trace shows my _thread_id object, but I can’t figure out why I’m not able to get to it. Any ideas on what I could be doing wrong?

Here are some details about the crash and the stack trace:
https://i.stack.imgur.com/NL2tD.png

Thread 1, Queue : com.apple.main-thread
    #0  0x01058657 in ___forwarding___ ()
#1  0x01058522 in __forwarding_prep_0___ ()
#2  0x00a99fcb in _NSDescriptionWithLocaleFunc ()
#3  0x010d0c1d in __CFStringAppendFormatCore ()
#4  0x01018507 in _CFStringCreateWithFormatAndArgumentsAux ()
#5  0x010a01ee in _CFLogvEx ()
#6  0x00b179a4 in NSLogv ()
#7  0x00b17913 in NSLog ()
#8  0x0000a7a0 in -[NewReplyViewController postController:didPostText:withResult:] at /Users/Ken/iOS/Forums/NewReplyViewController.m:59
#9  0x00048b8f in -[TTPostController dismissAnimationDidStop] ()
#10 0x00369fb9 in -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] ()
#11 0x00369e4b in -[UIViewAnimationState animationDidStop:finished:] ()
#12 0x0027999b in run_animation_callbacks(double, void*) ()
#13 0x0021e651 in CA::timer_callback(__CFRunLoopTimer*, void*) ()
#14 0x010c88c3 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#15 0x010c9e74 in __CFRunLoopDoTimer ()
#16 0x010262c9 in __CFRunLoopRun ()
#17 0x01025840 in CFRunLoopRunSpecific ()
#18 0x01025761 in CFRunLoopRunInMode ()
#19 0x01c2e1c4 in GSEventRunModal ()
#20 0x01c2e289 in GSEventRun ()
#21 0x00347c93 in UIApplicationMain ()
#22 0x00001fa9 in main ()
  • 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-22T17:14:20+00:00Added an answer on May 22, 2026 at 5:14 pm

    For NSString @property, always use copy:

    @property (nonatomic, copy) NSString * thread_id;
    

    AFAIK there are only two situations where you can use @property(assign):

    • For literal types (i.e. non-object), for example: int, float, NSUInteger, CGPoint etc
    • When you only want to have weak-reference to an object that will outlive the class object, the most common examples are delegate and view controller: @property (nonatomic, assign) UIViewController *viewController

    p/s: Weak reference prevents cyclic dependency, for example: controller retains view, then view retains controller so in the end both cannot be released

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

Sidebar

Related Questions

I cannot figure out how to change the title bar icon (the icon in
I cannot figure out a way to disable a container AND its children in
I cannot seem to be able to figure out why I receive: Fatal error:
Cannot find any example on Google.
I'm trying to retrieve the access level (admin/member/guest) for the currently logged in user
I just come across a strange problem where i cannot retrieve the sql stored
I cannot retrieve data from Cassandra after I exit the cli. When I go
I cannot retrieve multiple files in my php code from $_FILES. Here is the
Im querying a database using JPQL but I cannot retrieve the 'Report' table's rows
Cannot dump Stack Overflow XML file into SQL Server 2008. Could you please explain

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.