Skip to content

Conversation

@hesstobi
Copy link

@hesstobi hesstobi commented Oct 5, 2012

I use iNotify in a screensaver bundle. I faced the problem that the bundled Localizable.strings are not working, because they are not found. To fix this i change [Bundle mainBundle] to [Bundle bundleForClass:self]

@nicklockwood
Copy link
Owner

I've not created a screensaver before. What does [NSBundle mainBundle] return for a screensaver?

@hesstobi
Copy link
Author

hesstobi commented Oct 6, 2012

A screensaver is a bundle for the preferences app so [NSBundle mainBundle] returns NSBundle </Applications/System Preferences.app>

@classhr07
Copy link

Small Issue im having, not sure if its due to IOS 6 or not but when I implement the INotify.m im getting a warning :/

Screen Shot 2013-01-21 at 12 02 34 AM

any ideas? I was able to ignore the warning once and the code worked flawless, but wondering if you have a fix?

Thanks!

@nicklockwood
Copy link
Owner

It's due to iOS6. I'll fix it in the next update.

The warning should be harmless, but you can fix it by changing the value to NSLineBreakByWordWrapping.

@CrisAdam-VeasnaKhy
Copy link

Akmoment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants