I'm pretty sure that this is close, but not the whole procedure. I think that the pairing procedure changes the
receiving device, not the remote, so doing the above will prevent your

TV from responding to the MacBook's remote, not the other way around. You will probably still want to do that, but in addition you should find the MacBook's remote and pair it with the computer, so
the computer will ignore the

TV's remote. Here's
a link to the pairing procedure for your computer.