-6

I'm new to objective-C. Can someone explain what does this code mean?

title = NSLocalizedStringWithDefaultValue(@"DFUSuccessAlertTitle",
                                                              @"DFU",
                                                              [NSBundle mainBundle],
                                                              @"Success",
                                                              @"Title in firmware update on complete");

Specifically, what is this NSBundle thing?

Thanks

user3240815
  • 21
  • 1
  • 5
  • https://www.google.co.uk/?gws_rd=ssl#safe=off&q=NSBundle You couldn't Google this? – SierraOscar Jan 16 '15 at 20:09
  • @SO the OP is probably asking about the meaning of `[NSBundle mainBundle]` in this context. – Matt Ball Jan 16 '15 at 20:12
  • 1
    @MattBall Fair enough, the question should be a bit more specific then I guess, but point taken. – SierraOscar Jan 16 '15 at 20:13
  • Why are you guys so mean here? It's a legitimate question.Yes, I was asking about the meaning of [NSBundle mainBundle]. If you read the google results, you'll see that it doesn't help me understand that piece of code at all – user3240815 Jan 16 '15 at 21:03

1 Answers1

0

[NSBundle mainBundle] is the basic message-passing syntax in Objective-C.

Matt Ball
  • 354,903
  • 100
  • 647
  • 710