« first day (754 days earlier)      last day (1402 days later) » 
00:00 - 18:0018:00 - 00:00

6:01 PM
CTRL+CLICK IS A SHORTCUT FOR JUMP TO DEFINITION AND NO ONE TOLD ME
 
@Dev2rights you there, holmes?
 
@user3923716 yes
Supposedly there are alternatives
 
you mean CMD+Click, matt?
 
matt..?like..?
 
@CaptainRedmuff im here all be it playing metal gear
 
6:03 PM
@Guilherme yes
 
good call.
 
@user3923716 I can't recall of the top of my head
Check SO
 
me and a friend are playing all the way through every metal gear game minus DC
 
@Dev2rights I was going to ask if you could have a gander at my unity project, but I realise it's all buggered as I was hacking away at it last night :P
 
and did you know that option+click opens a popup with the documentation of the method/class?
 
6:04 PM
Nice. Me and a friend played through all the Gears of War games before I traded up to a Xbox One
 
i cant tonight but i could take a gander when i gt into the office tomorrow
though tbh im still learning
so might not be the best advisor
 
No worries.
I've borked the project anyway
so in fixing it, i'll write a better implementation which will hopefully work and wont require assistance :D
 
@Guilherme ARE YOU A WIZARD?
 
nope... I just... experiment
 
That is incredibly useful
Teach me your ways
 
6:06 PM
sure im going to work on our game tomorrow anyway
so will have some spare time
 
@Dev2rights sorry to have bothered you
Enjoy some MG :]
 
no is fine
 
I think your description earlier has helped me identify a better pattern for building meshes
I just need to figure out how to write C# :P
 
just try and keep them as tightly bound as possibl
our next game should have 5 meshes at any one time some are large though
large is fine if it is bound together
i.e. static objects like terrain
 
For the time being, the meshes are super simple
I just need to combine them and save them
I think I know how though, so thats half the battle
 
6:11 PM
yeah play around and see what profiler information you get out also
 
rather than combining meshes with CombineInstance, i'm appending the mesh data
triangles.AddRange(mesh.triangles);
just need to keep track of the indices
 
makes sense
right im off to go break some neck bones
 
yeah, lol.
 
in a bit
 
For some reason, it didn't make sense last night :P
enjoy :D
 
6:14 PM
I can't rotate a view on iOS 7 :/
 
OMG!
@Dev2rights it works :D
 
@Guilherme ?
@CaptainRedmuff NO C# IN THIS ROOM
 
Instant results.
winfruit.
@mattsven I haven't posted any C# in this room ;]
well, other than 1 line :P
 
matt, my app is 99% portrait, but I want one view to be landscape. my trick until iOS 8 was to design it on portrait mode and rotate the elements 90°
 
That sounds...moderately hacky
Did you actually rotate it using transforms?
 
6:16 PM
[self view].transform = CGAffineTransformMakeRotation(-M_PI_2);
 
AH IT HURTS
 
tha'ts quite simple actually
 
OK, so why doesn't it work in iOS 8?
 
it does
 
You really should just use conditional rotation methods
 
6:17 PM
but with the new SDK it does not on iOS 7
 
Or just present a VC with custom rotation
Is this view solo or in UINavigationController or UIViewController...?
 
UIVC
 
Yeah...so why can't you use the rotational methods?
Or are you forcing-ish the rotation?
 
what methods?
 
Explain how your view hierarchy looks.
Or why you couldn't use the usual ones - supportedInterfaceOrientations, shouldAutorotate, and so on
I'm missing something
 
6:20 PM
UIVC contains a view (the default view that every VC has)
inside, there's another View, which does not fill the screen
I want to rotate that view
inside it there are a bunch of stuff
 
ahhh
Hmm
Wonder why your transform isn't working, then
Should be fine
I assume there are other views (besides the one you want to rotate)?
So some of the views stay...normal, or portrait, and you only want one view to rotate?
 
no, the view I'm rotating contains all the other subviews
and those are supposed to rotate as well
that's why I wrapped them into one, so I make only one rotation
 
So, if there's one daddy view, and you need that view to rotate, then there's no reason why the view controller shouldn't rotate your daddy view by default...?
When the device orientation changes
That's how VCs work
 
the VC doesn't rotate because the rest of my app is portrait oriented
I want to avoid enabling landscape orientation because I'll have to edit aaaall the other VCs
if there's another easier way to do that without rotations, I'd love to know
 
ahh
Hmm
Interesting dilemma
How many other VCs are there that you couldn't copy-paste?
 
6:34 PM
Hello everyone!
 
I dislike your username
 
I've got action categories to work
I have the best name ever
NSStackoverflowQuestion is totally a class Im going to make
 
You could potentially wrap all your other UIViewControllers with a parent VC, and that parent VC will deny them the right to rotate..
 
matt, they aren't many... it's just... OCD, you know...
 
And then, you can create a category - and have the VCs ask the category what rotations they should support.
 
6:36 PM
why would you have categories in VCs?
 
That way, all you have to do is change the category in order to edit rotation for all the VCs.
And it'll save you time and hassle in the future
 
I C where your going with this
 
Why wouldn't you use categories in a view controller?
Something like [UIViewController supportedOrientationsForViewController:]
 
thats how you modify the VC's orientation in many 3rd party libraries and addons
especially in COCOs2D or Box2D
 
+ conditions with [viewController isKindOfClass:]
@initWithQuestion oh, neat
never worked with game engines
Besides Flash
 
6:38 PM
that, or you have to link them up with AppDelegate methods
 
@Guilherme Another ZAAANY hack, is to lock the transform
@initWithQuestion Oh, that too
 
lock?
 
It's more effort, probably, than copy-pasting
 
hmmmm. I am wondering, do you know how to get userNotificationActions to appear on the widget within the lock screen?
They are only available when i swipe them to the left
I want them to be those buttons
 
But, I once used KVO to monitor a view's transform that iOS kept changing. And when it changed...I changed it back
I shouldn't have told you that
Now you will all have to die
 
6:40 PM
like those
 
from the appdelegate, how can I check if the current VC is presented modally?
 
[UIApplication sharedApplication].keyWindow.rootViewController
 
1
Q: Check if view controller is presented modally, or pushed on a navigation stack

meaning-mattersHow can I, in my view controller code, differentiate between: presented modally pushed on navigation stack Both presentingViewController and isMovingToParentViewController are YES in both cases, so are not very helpful. What complicates things is that my parent view controller is sometimes m...

 
something like that
 
you have to create boolian values that are called
is the solution
however, in Obj-C, there are 1000 ways to do something
unless
its an Apple delegate
 
6:43 PM
I tried self.window.rootViewController but when I perform isKindOfClass if fails
 
That's weird
fails how?
 
it never matches the class I want
never returns YES
 
Did you NSLog the rootViewController to make sure you're getting the right thing?
 
I'm doing that right now
oh well, of course... the root will always be a NavController...
I need to check it's topViewController
 
lawl
And also you're not checking the keyWindow
But your approach is fine, if topViewController is what you want
 
6:47 PM
what keyWindow?
UIViewController *vc = ((UINavigationController *)self.window.rootViewController).topViewController;
 
nvm if that works
 
not topViewController either :P
but visibleViewController
now I think I got this
OH CRAP YOU HAVE GOTTA BE KIDDING ME :@
 
?
 
the VC is now presented in landscape mode as I wanted
 
lol
 
6:51 PM
I disabled the rotation, as I should
but the view is broken
now it's broken on both iOS 7 and 8! :D
I'm so talented at breaking stuff
 
Wonder how long till I get to 10K rep
I rarely answer questions these days, I just let my old ones reap rep
 
woops, I de-commented the wrong line :P
jenius...
another question if you're willing to help: stackoverflow.com/questions/26000231/…
 
you saw this, right?
115
Q: iOS 8 : Location Services not working

özgMy app that worked fine in iOS 7 doesn't work with the iOS 8 SDK. CLLocationManager doesn't return a location, and I don't see my app under Settings > Location Services either. I did a Google search on the issue but nothing came up, what could be wrong?

 
I saw a lot of answers
including that one
 
I solved that problem yesterday
Here is how to fix it
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0){
[self.locationManager requestAlwaysAuthorization];
}
iOS 8 will not ask automatically
so your going to have to have to call that line of code
 
6:59 PM
the problem is that I send the request
the popup does not appear
 
you have to go to your Plist
and put in this line
NSLocationAlwaysUsageDescription
 
I did that too
 
type:stirng
string*
 
did you read my question?
 
just did
the answer is quiet simple
[locationManager startUpdatingLocation];
oh and
 
7:01 PM
Someone should create a sample/test project
 
dont put all that stuff in the AppDelegate
 
where should I put that?
the initial VC already contains the map and will try to locate the user
 
I actually created a seperate location Controller class
that is a singleton
that runs once its allocated
and just call init and have that code run in the init method of the CLLocationManager class handler
this way its maintaining encapsulation
and allows locationManager to be reused throughout the app
 
I don't have a CLLocationManager, I don't need it
 
smart
 
7:03 PM
AH
thats the problem
you need a CCLocationManager object to start updating location
and also you need to call its delegate methods
 
the MapView doesn't do that automatically?
 
hmm
 
maps and CCLocationManager work together
 
now that sounds like an answer
 
7:04 PM
the map is the view, the CCLocationManager is a model for it
read up on Apple's location guide
its a very very thorough one
 
but well, I did create one instance in the appdelegate. why isn't that enough?
 
7:24 PM
Why isn't anything enough?
Why must we shuffle through this life with this void inside?
 
I can't even use my 4S anymore
 
Screen's too small
 
Last week, I thought the iPhone 5s screen was amazing, big enough, never thought it was small. I hold my 4S and like, WTF is this small phone! and then i look at my 5, which is bigger but Im still like, "WTF is this screen size! How did i live all my life!"
I can't look at these phones the same ver again
 
7:42 PM
did you get the 6 or plus?
 
Gah I want to get one
 
6 Plus
Its gigantic and i love it
 
But I can't justify it at the price...I'd pay way more since I'd be using it without a plan...
 
Lol, people are bending the phones in their pockets 😂
 
So how are you carrying it around?
 
7:44 PM
Im not fat, I don't wear super baggy shorts, my pocket annoys me if i have my small wallet and keys in 1 pocket, and yet i can sit all day, my phone isn't tight in my pocket, isn't sticking out, How the hell are these people bending the phones!
They need to stop wearing skinny jeans, they obviously aren't skinny enough that their pockets can put stuff in
Its in my left pocket like I've always carried phones:P
 
Also...I'd hate a bigger phone since I'd have to take it out more often, increasing the chance of losing/it getting stolen
brb
 
if it fits your pocket, I'm sorry to tell you, but you do have large pockets
 
I can't have anything else in my left pocket, has to be super flat surface such as iPhone or nothing at all
LOL
My pockets don't seem big
 
they are, I assure you
 
Ill go take a picture of my shorts lol, their quicksilver or something
 
7:46 PM
I GOT IT! matt
I wrapped my views once again
 
What did you do
 
you wrap your wrapper on another wrapper, then you rotate it
 
Wrap a what?
What are you wrapping?
 
but if on iOS 8, you rotate the wrapper wrapper, if on 7, you rotate the first wrapper
let's rap about the wrapper
IMMA RAPPER WHO RAPS ABOUT WRAPPERS THAT WRAPS WRAPPERS
 
Can i be on your album?
 
7:49 PM
YO
would you really like to be on that sh*t?
 
then ok, you're in
 
Im the best rapper in my house
I don't think older phones like widgets
 
I'm sorry, we can find you a roomate if you want one
 
my 5 and 4S can't handle widgets and won't log anything, 6 Plus works like its nothing
 
7:51 PM
that's BS... you've been brainwashed
5 works pretty good
 
nope, my 5 won't load my widget at all
it shows, but no content
Keeps losing connections to the device as well
 
tha's coz you're a bad coder
jk
I haven't read about widgets yet. what are you doing?
 
Its only code is to show a view with a red border right now
Today widget
 
hmmm alright
but iphone 5 does not support red borders. that's why
 
Now it is showing
Lol
Im sure it doesnt
I guess it works but it takes like 5 minutes for it to actually display content, unlike iPhone 6 Plus which loads it like its 💩
I guess only iPhone 6 Plus supports redColor
 
7:55 PM
oh crap... I just fucked my git repo
# Not currently on any branch.
110
Q: Git: "Not currently on any branch." Is there an easy way to get back on a branch, while keeping the changes?

Erik BSo I've done some work in the repository and when I'm about to commit I realize that I'm not currently on any branch. This happens a lot when working with submodules and I am able to solve it, but the process is tedious and I've been thinking that there must be an easier way to do this. Is ther...

should I try that?
 
5 hours later ill be able to debug this app-_- piece of crap
It doesn't update the widgets. Shows a label that is completely removed:/ WOW. Widgets are terrible
No wonder why there aren't any good ones yet
 
CRAAAAAAAP I lost ALL my changes
 
Sorry
Wrap it again
 
not all. just the TWO that I wanted to commit
all the others that I was going to revert are there
 
NOT ON MY BRANCH YOU WON'T
I have some horrible Git memories
Like that time Xcode sabotaged my work
I had to rewrite everything, and I did it BETTER! It only crashes 80% of the time now
Guess who finally wrote an infinitely scrolling UIScrollView
 
8:20 PM
a bunch of guys did it years ago
so if I am to commit on Xcode, and I uncheck some files, their changes won't be committed, right?
even though the button says commit xxx files, where xxx is the total number of edited (not selected) files
 
8:35 PM
So I found 2 things with the same icon just flipped
Lockdown looks kinda cool but its all gray, white and black.WTF
 
LOL
 
8:51 PM
@Maximilian Supposed to look like a lock, I guess
Possibly conicidence
@Guilherme Ugh don't kill my vibe
Plus I did it without help so
I'm kind of genius
 
my app is freezing (not crashing) when I try to sync the userdefaults
when I attempt to override a value
 
9:33 PM
Hello everybody... Q: I want to store a .txt file on iTunes; no backup, just a .txt file... is that possible, and if so, where are the docs I can read up on this? (I've already looked on Google and SO and found nothing)
it's ok to ping me with your reply (I'm doing other stuff while waiting) :D
 
@Guilherme it means that you are causing a loop
its occuring because UserDefaults is on a singleton and so you have to work with that
[NSUserDefaults sharedDefaults]
if you cause a loop in Obj-C ARC won't necesarily do anything about it so you won't get a thread kill. Could you post the code that you are using to sync the defaults?
On a seperate note, how big are dictionaries in memory?
lets say I have a dictionary object with just 2 strings
 
10:01 PM
Not that big
@spokane-dude You don't mean iTunes, you mean Documents?
 
Hi matt... no, I want to store a file on iTunes so the user has an easier time of loading it. The file contains records that my app will import into a CoreData store, thus initializing it with content...HTH
 
Soooo this is OSX?
 
no, iOS... app runs on an iPad
 
hey guys i have a question for autolayouts.. i cant seem to figure out how to make 2 subviews resize to 50% of the size of its container uiscrollview .. any help/guidance is highly appreciated :)
 
@spokane-dude saving it to iTunes...
hmm
You may be able to do some sort of iOS file sharing thing? The file won't get onto the user's computer without them taking some action...
 
10:10 PM
yes, the user saves it to iTunes and the app grabs it from iTunes... simple... only, I can't find any docs that say it can be done... alll they speak about is sharing or backup
that's the point... if they have a Windows machine (ugh!) then they should be able to move the file from Windows to iTunes where the app can grab it...
 
11:06 PM
see u tomorrow... have a nice night... SD
 
what data structure is used by the native text messaging app in IOS to store the text content of each message and who sent it?
@CaptainRedmuff because pro means nothing anymore, its all about the premium and the S, and Plus nowadays.
 
@initWithQuestion that probably changes
 
depending on how much stuff is stored?
My guess is that if its 2 people
you can store it in an array
and save it as in, myConvo = [messageArray objectAtIndex:2n];
otherUserConvo=[messageArray objectAtIndex:2n+1];
 
00:00 - 18:0018:00 - 00:00

« first day (754 days earlier)      last day (1402 days later) »